The views_fastsearch module provides a faster functionally equivalent alternative to the views "Search: Index" filter. This search is considerably faster (than the search in views_search.inc), supports OR terms, exception terms, and sorting by score.
- It is noticeably faster - 5-20x faster
- defaults to AND terms, but supports the OR keyword
- implements exception terms using the – prefix (i.e., “global warming –ocean†searches for nodes that include “global†and "warming" but do not include “oceanâ€)
- implements a sort by the search word score, when there are multiple terms, it sums them up – this presents results where the search words are in the title or header tags higher up in the list
This module was the proof of concept of a solution using alternative search SQL that made it into 6.x core. The 6.x implementation is different (better) than this one, but both provide similar speed enhancements. The primary difference is that the 6.x implementation offers better query term support.
Please read the release notes AND install this patch #143888.
See also the contrib module vfs_ranking_nodetype packaged views_fastsearch, for an example of how to write a hook_search_ranking to extend the scoring factors used in the search results. See also #145242.