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