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 / August 2006

Tip: Looking for answers? Try searching our database.

help with containstable

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
geek-y-guy - 29 Aug 2006 20:19 GMT
I have a FTcatalog on a table called "products" where I'm indexing
"product_id", "product_name", "product_description"

I'm parsing a search box in a form and splitting on the spaces to
dynamically create the query, so someone my type in "Bob&Roy Video"

If I search for 'Bob&Roy' using containstable I get an error unless I wrap
it in double-quotes...is this the correct way to write the query?

select p.product_name, p.product_desc, k.rank from products p inner join

containstable(products,*,'isabout ("Mike&Ike" weight(.9),"video" weight
(.1))') as k

on p.product_id = k.[key]

order by k.rank desc

I'm not getting the results weighted the way I'd expect, but I'll tackle
that next.
Hilary Cotter - 30 Aug 2006 01:33 GMT
That is exactly the way to do it.

Signature

Hilary Cotter
Director of Text Mining and Database Strategy
RelevantNOISE.Com - Dedicated to mining blogs for business intelligence.

This posting is my own and doesn't necessarily represent RelevantNoise's
positions, strategies or opinions.

Looking for a SQL Server replication book?
http://www.nwsu.com/0974973602.html

Looking for a FAQ on Indexing Services/SQL FTS
http://www.indexserverfaq.com

>I have a FTcatalog on a table called "products" where I'm indexing
>"product_id", "product_name", "product_description"
[quoted text clipped - 16 lines]
> I'm not getting the results weighted the way I'd expect, but I'll tackle
> that next.
 
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.