Search Ranking Module

Events happening in the community are now at Drupal community events on www.drupal.org.
BlakeLucchesi's picture

Hey everyone. I just finished up work on my Summer of Code project that was targetted at further developing the core search. During the course of the project I created a module for Drupal 6 that back ports DougGreen's hook_ranking() patch that made it into HEAD. The module uses hook_menu_alter() and some other work to override the core search implementation completely. This module also includes some other cool new things listed below. I'd like to get some feedback on the changes that have been made because I want to create some patches for the new features to be integrated into HEAD.

New Stuff:

  • Complete test coverage for hook_ranking() and all implementations of it. Test coverage provides a basic test class that allows for easy writing of future ranking tests by providing on setUp a set of 20 pre-created, equally identical nodes.

  • Inline ajax search provided in the administration screen. This allows admin users to test their ranking settings without having to actually save the new settings.

  • Search ranking score is shown as part of the result listing.

  • Interface improvements to alert the user that the form must be saved to save the changes to the ranking factors, this falls inline with other interfaces seen in the block admin screen and others.

Please check it out. http://drupal.org/project/search_ranking

Thanks!
Blake

Comments

I just submitted a patch to

BlakeLucchesi's picture

I just submitted a patch to the core search module to fix the recency ranking algorithm, this is bundled with the Search Ranking module. Additional notes and info posted on the issue node

http://drupal.org/node/303574

Search

Group organizers

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: