Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
DB Engine
SQL ServerMSDESQL Server CE
Services
Analysis (Data Mining)Analysis (OLAP)DTSIntegration ServicesNotification ServicesReporting Services
Programming
CLRConnectivitySQLXML
Other Technologies
ClusteringEnglish QueryFull-Text SearchReplicationService Broker
General
Data WarehousingPerformanceSecuritySetupSQL Server ToolsOther SQL Server Topics
DirectoryUser Groups
Related Topics
MS AccessOther DB ProductsMS Server Products.NET DevelopmentVB DevelopmentJava DevelopmentMore Topics ...

SQL Server Forum / Other Technologies / Full-Text Search / April 2007

Tip: Looking for answers? Try searching our database.

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

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Xavi - 23 Apr 2007 12:14 GMT
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
Hilary Cotter - 23 Apr 2007 13:31 GMT
This should work. Note that sports and news will have to be in the same
column to get a hit form this row.

> Hi all !
>
[quoted text clipped - 20 lines]
>
> Xavi
Xavi - 23 Apr 2007 14:46 GMT
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

> This should work. Note that sports and news will have to be in the same
> column to get a hit form this row.
Hilary Cotter - 23 Apr 2007 15:03 GMT
The concatenated column offers the best performance.
> Exactly but I'd like to know how to make it work when words are
> located in different fields.
[quoted text clipped - 11 lines]
>> This should work. Note that sports and news will have to be in the same
>> column to get a hit form this row.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.