Solved

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

Posted on 2011-09-04
2
364 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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

How to leverage one TLS certificate to encrypt Microsoft SQL traffic and Remote Desktop Services, versus creating multiple tickets for the same server.
This article explains how to reset the password of the sa account on a Microsoft SQL Server.  The steps in this article work in SQL 2005, 2008, 2008 R2, 2012, 2014 and 2016.
Via a live example, show how to setup several different housekeeping processes for a SQL Server.
Viewers will learn how the fundamental information of how to create a table.

757 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now