How to change ranking order?

Post Reply
User avatar
Thunderstone
Site Admin
Posts: 2504
Joined: Wed Jun 07, 2000 6:20 pm

How to change ranking order?

Post by Thunderstone »



Hi2u all.

I'd like to know how to change the ranking order implemented in
webinator.

If I'm not wrong at time of writing webinator should rank docs. in the
following order:

1)Title;
2) Meta;
3) Body.

On the contrary I'm in the need of the following "ranking order":

1)Meta;
2) Title;
3) Body.

Thanx.
--
+-----------------------------------------------------+
| Denis Torresan E-TREE srl |
| junior IT Developer via Fonderia, 93 |
| Tel. +39 0422 3107 31100 Treviso (TV) |
| Fax. +39 0422 310 888 ITALIA |
| mailto:torresan@e-tree.com http://www.e-tree.com |
+-----------------------------------------------------+


User avatar
Thunderstone
Site Admin
Posts: 2504
Joined: Wed Jun 07, 2000 6:20 pm

How to change ranking order?

Post by Thunderstone »




You would have to create a metamorph inverted index on the Meta\Title\Body
virtual field. See http://www.thunderstone.com/texisman/node120.html
Something like:
texis -s -d YOURDBPATH "create metamorph inverted index xmalt on html(Meta\Title\Body)"
And adjust your search script to search "Meta\Title\Body" instead of
"Title\Meta\Body". You will also need to reissue that create statement
after walking new pages with gw, as gw won't know about your custom index.




User avatar
Thunderstone
Site Admin
Posts: 2504
Joined: Wed Jun 07, 2000 6:20 pm

How to change ranking order?

Post by Thunderstone »






To do this requires that you create indexes and perform the SQL queries
with the field orders specified differently.

Change the SQL statements that say
"select ... where Title\Meta\Body likep $q..."
to
"select ... where Meta\Title\Body likep $q..."

Also you must drop the index named xhtmlbod and recreate it
with "create metamorph inverted index xhtmlbod on html (Meta\Title\Body)"
This must be done every time you update the contents of the database.

This is all covered in greater detain in the Texis manual.

Thanks,
Bart




Post Reply