| 5 |
Provides node type ranking to vfs. |
Provides node type ranking to vfs. |
| 6 |
|
|
| 7 |
It's in a beta phase, but works, so please give feedback on what is needed. |
It's in a beta phase, but works, so please give feedback on what is needed. |
| 8 |
|
|
| 9 |
To install: |
To install: |
| 10 |
|
|
| 11 |
Enable the module. |
Enable the module. |
| 12 |
|
|
| 13 |
This will create the table vfs_ranking_nodetype which has two columns, type and search_weight |
This will create the table vfs_ranking_nodetype which has two columns, type and |
| 14 |
|
search_weight. |
| 15 |
|
|
| 16 |
Go to admin/settings/vfs_ranking_nodetype |
Go to admin/settings/vfs_ranking_nodetype |
| 17 |
|
|
| 18 |
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. |
Here you can set a weighting from 0-10 for each type. Currently, the vfs search |
| 19 |
|
results score is simply multiplied by this number. So if you set the weight of |
| 20 |
|
stories to 5 and the weight of pages to 2, a story which previously had a score |
| 21 |
|
of 5, will now be 25, and a page which previously had a score of 10 will be 20, |
| 22 |
|
so now the story will come first. |
| 23 |
|
|
| 24 |
Enjoy! |
Enjoy! |
| 25 |
|
|
| 26 |
|
Note: This is a good example on how to extend search ranks - Doug Green. |
| 27 |
|
|