all groups > sql server full text search > january 2005 >
You're in the

sql server full text search

group:

Duplicates in result set


Duplicates in result set Michael D.
1/24/2005 2:41:03 PM
sql server full text search:
I have a simple FT query

SELECT PK,TEXT_DATA
FROM TABLE
WHERE CONTAINSs(TEXT_DATA,'"search1" and "search2"')

I get duplicates in the result set, despite the fact that no duplicates of
the PK,TEXT_DATA exist in the table...

Is this an indication that the FT index is corrupt ???

Any insight will be of value.

Re: Duplicates in result set Hilary Cotter
1/24/2005 5:48:48 PM
well, it is unusual behavior.

Are you saying you will get two rows with the same pk returned from this
search?

[quoted text, click to view]

Re: Duplicates in result set John Kane
1/24/2005 6:06:00 PM
Michael,
Have you tried using the distinct keyword? For example,

SELECT DISTINCT PK, cast(TEXT_DATA as varchar(1000)) as Short_Description
FROM TABLE
WHERE Contains(TEXT_DATA,'"search1" and "search2"')

Regards,
John
--
SQL Full Text Search Blog
http://spaces.msn.com/members/jtkane/


[quoted text, click to view]

AddThis Social Bookmark Button