Solved

SQL Full Text Search - Show which result/row hit against query

Posted on 2011-09-04
2
368 Views
Last Modified: 2012-05-12
I have a FTS query - allowing the user to enter multiple search criteria against a blob/varbinary(max) field- is there a way, in the result set - to show which search criteria resulted in each returned row?
0
Comment
Question by:tbaseflug
2 Comments
 
LVL 51

Accepted Solution

by:
Mark Wills earned 500 total points
ID: 36484216
Not really...

If there is a list of criteria it is very hard to determine which one was used in FTS for the match.

You can get a rank, but still doesn not say which of the criteria was successful, just that any one of them was (and pretty sure that as soon as one is, the others dont count anymore). Nor can you see which terms were superfluous to the search criteria.

You can have a look at the type of search scenarios : http://msdn.microsoft.com/en-us/library/cc879300.aspx and how they might be  ranked : http://msdn.microsoft.com/en-us/library/ms142524.aspx

But, the only real answer to your question is "no".

0
 
LVL 45

Expert Comment

by:aikimark
ID: 36484707
Post-closure thought.  You might post-process the results applying the individual comparison expressions.  It would get very complicated very quickly with the complexity of boolean operators.
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

Load balancing is the method of dividing the total amount of work performed by one computer between two or more computers. Its aim is to get more work done in the same amount of time, ensuring that all the users get served faster.
Ever needed a SQL 2008 Database replicated/mirrored/log shipped on another server but you can't take the downtime inflicted by initial snapshot or disconnect while T-logs are restored or mirror applied? You can use SQL Server Initialize from Backup…
Familiarize people with the process of utilizing SQL Server functions from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Ac…
Viewers will learn how the fundamental information of how to create a table.

776 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