Groups | Blog | Home
all groups > sql server full text search > june 2006 >

sql server full text search : Using wilcards in a fulltext index


Hilary Cotter
6/28/2006 12:00:00 AM
Note that all terms in your search argument will be wildcarded - 0 and
section.

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

kforem NO[at]SPAM hotmail.co.uk
6/28/2006 12:54:55 AM
Hello,

I have a fulltext indexed column which contains some like:

Section 0 Name
Section 1 Name

When I run a query like:

select *
from tbl_FullTextData
where contains(name,'"section 0"')

It returns records, but when I run:

select *
from tbl_Schemenamesearch
where contains(name,'"section 0*"')

It does not return anything. Not sure why this is happening.
kforem NO[at]SPAM hotmail.co.uk
6/28/2006 1:38:24 AM

[quoted text, click to view]


Have found the answer:

Need to put a space after the wildcard e.g.:

select *
from tbl_Schemenamesearch
where contains(name,'"section 0* "')
AddThis Social Bookmark Button