Gossamer Forum
Home : Products : Gossamer Links : Version 1.x :

Re: search bugs -help please

Quote Reply
Re: search bugs -help please In reply to
Hi FOG,

a higher value of weight gives more relevance for search.

0 = don't index at all.
1 = lowest weight
2..9
10 = highest weight.

Good balance : Title = 3; Description=2; URL =1
If you want perfect results, and edit your Links manually, consider using a new field called Keywords where you insert relevant keywords divided by spaces. Weight this field with 5.

Always re-index your database after changing weights.

For a better understanding:

You have following Link
Title:LinksSQL needs a manual.
Description:Missing manual? A product like LinksSQL worth 450$ should ship with a nice, easy to read and understandable manual...
URL:http://www.gossamer-threads.com/perl/forum/

and you set following weights: Title=3; Description=2; URL=1
now you re-index. It does following: (for all words but we only look at the keyword "manual")

1. Title: keyword "manual" found 1x; weight of Title =3 result 3 (1x3)
2. Description: keyword "manual" found 2x; weight of Description=2; result = 4 (2x2)
3. URL: keyword "manual" found 0x; weight of URL=1; result =0 (0x1)
Now the seach index Table gets a new entry for the keyword "manual" for this Link with the value of 7 ( 3 + 4 + 0).

If someone now searches for "manual" with search.cgi (Not with search-ni.cgi) he will get this Link as searchresult with the relevance of 7, together with other Links containing this keyword, ordered by relevance.


regards, Alexander

Subject Author Views Date
Thread search bugs -help please John_R 3612 Oct 4, 2000, 5:36 AM
Thread Re: search bugs -help please
Stealth 3540 Oct 4, 2000, 6:52 AM
Thread Re: search bugs -help please
harrison 3536 Oct 4, 2000, 1:44 PM
Thread Re: search bugs -help please
FOG 3528 Oct 4, 2000, 5:30 PM
Thread Re: search bugs -help please
Alex404 3514 Oct 5, 2000, 2:27 AM
Post Re: search bugs -help please
FOG 3506 Oct 5, 2000, 4:17 AM