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
11 hours 49 min ago
11 hours 53 min ago
18 hours 36 min ago
1 day 6 hours ago
2 days 32 min ago
2 days 7 hours ago
2 days 9 hours ago
3 days 3 hours ago
4 days 39 min ago
4 days 13 hours ago