custom scoring factors
walden - December 10, 2007 - 23:08
| Project: | Views Fast Search |
| Version: | 5.x-1.1 |
| Component: | Documentation |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed |
Jump to:
Description
Is it possible to achieve custom scoring factors with this module? For example, would I be able to add "best rated" as a scoring factor? Is there some documentation available for this? Any pointers are greatly appreciated.
thanks, Fletcher

#1
Yes it is. but I don't think I've written any documentation. To implement custom scoring factors, your module needs to implement hook_search_ranking. See views_fastsearch_search_ranking() for an example of what this hook needs to return.
I worked on a patch for Drupal core, that didn't make it into 6.x. But I'm going to work harder at getting this in 7.x. See http://drupal.org/node/145242 (although, this link will only tell you that I've thought of this before, and I think that it's important).
#2
See the new vfs_ranking_nodetype, now distributed with views_fastsearch, for an example.
#3
Automatically closed -- issue fixed for two weeks with no activity.