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
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

douggreen - December 14, 2007 - 18:45

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

douggreen - January 17, 2008 - 13:20
Status:active» fixed

See the new vfs_ranking_nodetype, now distributed with views_fastsearch, for an example.

#3

Anonymous (not verified) - January 31, 2008 - 13:21
Status:fixed» closed

Automatically closed -- issue fixed for two weeks with no activity.

 
 

Drupal is a registered trademark of Dries Buytaert.