Lullabot: Drupal's search module and scoring factors
Complete StoryIn this article I will show how the results of the search module can be fine tuned using controls available to Drupal site administrators. The search module's configuration options include up to four extra parameters called scoring factors for weighting search results based on keyword relevance, recency, number of comments, and the number of page views. It will be shown that adjusting these values can dramatically alter and improve the order of search results. We will then add a theme function to enhance the themed search items by displaying their score. Finally, we will extend the advanced search form to include the scoring factor controls so that every search can be custom tailored with regards to the scoring algorithm.









Recent comments
9 hours 13 min ago
9 hours 17 min ago
15 hours 59 min ago
1 day 3 hours ago
1 day 21 hours ago
2 days 4 hours ago
2 days 7 hours ago
3 days 52 min ago
3 days 22 hours ago
4 days 10 hours ago