Node Type Weighting
JacobSingh - January 17, 2008 - 04:49
| Project: | Views Fast Search |
| Version: | 5.x-2.x-dev |
| Component: | Code |
| Category: | feature request |
| Priority: | normal |
| Assigned: | JacobSingh |
| Status: | closed |
Jump to:
Description
I've added a module which provides node type ranking to vfs.
It's in a beta phase, but works, so please give feedback on what is needed.
To install:
Enable the module.
This will create the table vfs_ranking_nodetype which has two columns, type and search_weight
Go to admin/settings/vfs_ranking_nodetype
Here you can set a weighting from 0-10 for each type. Currently, the vfs search results score is simply multiplied by this number. So if you set the weight of stories to 5 and the weight of pages to 2, a story which previously had a score of 5, will now be 25, and a page which previously had a score of 10 will be 20, so now the story will come first.
Enjoy!
Jacob Singh

#1
Thanks! I've updated the project page to include a reference to this new contrib module.
#2
Anyone know if there is a module or some way to do this same thing (content type weighting) for the default Drupal search engine?
#3
Unfortunately no.
I am thinking of writing something, but for 5.x it will require a patch. try vfs though, it works really well.
#4
I've submitted a patch to 5.x (#145242) that allows this same type of weighting. It didn't get into 6.x, but it will be one of my main focuses for 7.x.
#5
Subscribing. Will the patch be part of this module soon?
greetings,
Martijn
#6
I don't think so, it's unrelated to views fast search.
#7
Automatically closed -- issue fixed for two weeks with no activity.