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

douggreen - January 17, 2008 - 13:24

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

#2

colliny2k - January 21, 2008 - 21:52

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

JacobSingh - January 22, 2008 - 04:38

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

douggreen - January 22, 2008 - 12:05

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

Summit - January 22, 2008 - 13:25

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

greetings,
Martijn

#6

JacobSingh - January 22, 2008 - 13:29

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

#7

Anonymous (not verified) - February 5, 2008 - 13:31
Status:fixed» closed

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

 
 

Drupal is a registered trademark of Dries Buytaert.