patches
Submitted by Robert Douglass on Mon, 04/21/2008 - 20:06.
- refactor search node_rank with hook_node_rank scoring factors: Node module’s content search allows four different runtime scoring factors, including keyword relevance, recency and number of comments. This patch replaces the hardcoded scoring factors with a hook that lets any module inject similar scoring factors.
- Path module should add URL alias to update index in nodapi.: Currently, the URL alias of nodes doesn’t play any role in the keyword relevancy of Drupal search. This might be the #1 reason Google still beats us at searching Drupal.org.
- Add spelling suggestions to the “no search results found” page.: When no search results are found, this patch looks at the query, looks at the words in its index, and uses the Levenshtein algorithm to make a spelling suggestion that might be what you intended to search for.
- Patch To Add User Profile Search: User search is useless in its current form. Being able to search user profiles would be a huge step forward in making search/user into something special.
- search_index hardcodes boosts to html elements. Should be configurable.: <h1> gets 25 points, <a> gets 10, and <em> tags get 3; wouldn’t it be nice if this were configurable?
- Exclude node types from search index: Sometimes you don’t want certain content types to be indexed. This adds an administration configuration for that case.
- Optional Exclusion of Taxonomy Vocabulary from Advanced Search: For those of you with HUGE taxonomy vocabularies, this will make the advanced search form usable again.
- Indexing options for taxonomy: Administrator gains the ability to say how strongly taxonomy terms should weigh in the indexing process. Synonym support included.
- Add scoring factor controls to advanced search form
The administrator can adjust runtime scoring factors on the site configuration -> search page. Why not let the end user decide how important each scoring factor should be by using the advanced search form? - Fix search index link handling for non-existent nodes
Esoteric bug with an RTBC patch (waiting for just one more review) that fixes the case when someone links to a not-yet-created node. - Showing result count and result range in search results: This is really a feature request for the pager. Why don’t we have something like “Showing 10-20 from 500 results” on our search pages?
- Replace “blue smurf” in no search results message: The quintessential bike shed argument. What two words should replace “blue smurf”?
Please help review and refine these patches. All of them need SimpleTest cases written as well.



