I have implemented Full Text Search on one of Sql Server 2008 Table. I am using containstable query to get the result and sorting it on the basis of Rank.
Example
SELECT Ad_text.*, k.rank
FROM Ad_text
INNER JOIN CONTAINSTABLE(Ad_text, text, 'Wanted or Engineers or bride') k
ON Ad_text.id = k.[KEY] order by rank desc
Now when query returns result, it rank those rows higher which have high number of frequency of any of these words where as i want those rows to be ranked higher which has all these words.
Like query will return result in this way
- Wanted Wanted Wanted Groom (Rank 200)
- Wanted Engineers For (Rank 180)
- Wanted Bride for Engineers Rank(190)
where as i want third one to be ranked higher. Is there is any to tell containstable that not increase weight for repetitive text.
Found a workaround has used FreeTextSearch with its number of records feature. It solve the purpose