Psst! Did you know DevelopmentNow is a mobile web site design agency?

Contact us for help mobilizing your site, or to sign up for our beta Mobile Web SDK!
all groups > sql server full text search > october 2007 >

sql server full text search : Keyword frequency skewing results


malbroadbent NO[at]SPAM hotmail.com
10/24/2007 5:59:03 AM
Hi

I must be missing something obvious. I'd like to write a query that
ranks the row containing the most unique keywords first, rather than
the row with the most keywords.

1) my user enters "red green blue"
2) my query include somthing like freetexttable (xxx,xxx, 'red green
blue' )

I would like the top-ranked result to be

".. ... red.. green .. .. blue... .. "

not

"red red red green purple orange red"

Currently the density of the "red" keyword in the second row is giving
it top rank. This isn't right. What am I missing? Is there a way to
limit the impact of high keyword occurrency or change the ranking
method?

Thanks.
Simon Sabin
10/24/2007 7:31:07 PM
Hello

I'm afraid it is right. Thats how the ranking is supposed to work.

Unfortunately there is no hitcount mechanism in full text to be able to rank
in the way you want.

Simon Sabin
SQL Server MVP
http://sqlblogcasts.com/blogs/simons


[quoted text, click to view]

AddThis Social Bookmark Button