Solved

SQL Server CONTAIN() Ranking

Posted on 2012-03-14
2
305 Views
Last Modified: 2012-06-27
Hi All,

I am using the following SQL which queries a View that has full text indexing enabled on a column call SearchContent.

I was under the impression that the records would be returned in rank order with the record with the most instances of the search term appearing at the top. But this doesn't seem to be the case.

Can anyone suggest what I could be doing wrong or provide alternative code to achieve this?

SELECT ProductName, ProductID
FROM ProductViewSearch
WHERE CONTAINS(SearchContent, 'tomy') AND 
ProductCatgeory IN(1,3,5)

Open in new window


Many thanks,

Rit
0
Comment
Question by:rito1
2 Comments
 
LVL 25

Accepted Solution

by:
jogos earned 500 total points
ID: 37719698
0
 
LVL 1

Author Closing Comment

by:rito1
ID: 37722721
Brilliant thanks.
0

Featured Post

Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I'm trying, I really am. But I've seen so many wrong approaches involving date(time) boundaries I despair about my inability to explain it. I've seen quite a few recently that define a non-leap year as 364 days, or 366 days and the list goes on. …
I have a large data set and a SSIS package. How can I load this file in multi threading?
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
Via a live example, show how to backup a database, simulate a failure backup the tail of the database transaction log and perform the restore.

860 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question