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

Comments

douggreen’s picture

Thanks! I've updated the project page to include a reference to this new contrib module.

Anonymous’s picture

Anyone know if there is a module or some way to do this same thing (content type weighting) for the default Drupal search engine?

JacobSingh’s picture

Unfortunately no.

I am thinking of writing something, but for 5.x it will require a patch. try vfs though, it works really well.

douggreen’s picture

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.

summit’s picture

Subscribing. Will the patch be part of this module soon?

greetings,
Martijn

JacobSingh’s picture

I don't think so, it's unrelated to views fast search.

Anonymous’s picture

Status: Fixed » Closed (fixed)

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