all groups > sql server full text search > august 2006 >
You're in the

sql server full text search

group:

newbie: containstable query structure


newbie: containstable query structure geek-y-guy
8/29/2006 2:38:20 PM
sql server full text search:
Hi: Quick question...I have a FT catalog populated with a table of products.
The catalog contains the product_id, product_name, and product_description
fields.

When I write a query, like:

select p.*, k.rank from products p inner join

containstable(products,product_name,'isabout (firestone weight(.9),tire
weight (.1))') as k

on p.p_id = k.[key]

order by k.rank desc


does the search only occur on the "product_name" field, or does it search
all 3 fields in the catalog?

Re: newbie: containstable query structure geek-y-guy
8/29/2006 2:42:23 PM
oops...never mind...I guess I just need:

containstable(products,*,'isabout (firestone weight(.9),tire weight (.1))')



[quoted text, click to view]

Re: newbie: containstable query structure Hilary Cotter
9/5/2006 12:00:00 AM
Only product_name, if you specify * for the columns to search it will search
all full-text indexed columns.

--
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



[quoted text, click to view]

AddThis Social Bookmark Button