Groups | Blog | Home
all groups > sql server full text search > april 2007 >

sql server full text search : Multiple columns full text search doesn't seems to work properly



Hilary Cotter
4/23/2007 12:00:00 AM
This should work. Note that sports and news will have to be in the same
column to get a hit form this row.

[quoted text, click to view]

Hilary Cotter
4/23/2007 12:00:00 AM
The concatenated column offers the best performance.
[quoted text, click to view]

Xavi
4/23/2007 4:14:31 AM
Hi all !

I have a full text search index on a table with several fields
indexed.

I tried the following query :

SELECT MyIndexedTable.MyIndexedTableID
MyIndexedTable.Title,
KEY_TBL.RANK RANK_Total
FROM
MyIndexedTable
INNER JOIN
CONTAINSTABLE(MyIndexedTable,*,'"sport" AND "news"') AS KEY_TBL
ORDER BY KEY_TBL.RANK DESC

There are some records that are not returned by the query but they
have the words "sport" and "news" in their fields.

Any idea what could be happening?

Thanks in advance.

Xavi
Xavi
4/23/2007 6:46:10 AM
Exactly but I'd like to know how to make it work when words are
located in different fields.

I have read about creating an extra Text (or nText) field with all the
content in it and then create an index based on that field, I also
have seen something using unions and multiple querys on the index. I
wonder if there's any better approach and which one will give better
perfomance.

Thank you for your answer!

Xavi

[quoted text, click to view]
AddThis Social Bookmark Button