Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Weighted Fulltext on Column

Status
Not open for further replies.

guitardave78

Programmer
Sep 5, 2001
1,294
GB
Is it possible to do a fulltext search but to weight the relevance of each column
If i could do it in my wording it would look like this

match(index_title*10,index_desc,index_keywords*5)

}...the bane of my life!
 
You could use something like:
[tt]
10*(MATCH(index_title)AGAINST('searchterm'))
+(MATCH(index_desc)AGAINST('searchterm')
+5*(MATCH(index_keywords)AGAINST('searchterm))
[/tt]
which would produce a weighted rating.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top