Solved

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

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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
How can i use insert and update together by merging two tables? 9 30
Upgrading my SSIS package in VS 2012 6 59
SQL Server / Update DB? 22 36
TSQL convert date to string 4 34
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.
In this article we will get to know that how can we recover deleted data if it happens accidently. We really can recover deleted rows if we know the time when data is deleted by using the transaction log.
This video shows, step by step, how to configure Oracle Heterogeneous Services via the Generic Gateway Agent in order to make a connection from an Oracle session and access a remote SQL Server database table.
Via a live example, show how to extract insert data into a SQL Server database table using the Import/Export option and Bulk Insert.

839 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