all groups > sql server full text search > september 2007 >
You're in the

sql server full text search

group:

Search and Index Question



Search and Index Question ChuSoft
9/6/2007 2:14:44 PM
sql server full text search: We need to index and search on "(specific text here)".

How can we do a free text search using the above.

Re: Search and Index Question Hilary Cotter
9/7/2007 6:55:38 AM
full text index your table on the columns you wish to search and then do
this

select * from tablename where freetext(*,'"(specific text here)")


--
RelevantNoise.com - dedicated to mining blogs for business intelligence.

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]

Re: Search and Index Question ChuSoft
9/7/2007 7:08:48 PM
Try it and it returns rows that does NOT have the "(some text here)".

It all rows that have "some text here"

[quoted text, click to view]

Re: Search and Index Question Hilary Cotter
9/7/2007 8:57:50 PM
I am sorry I misunderstood you question. Basically the brackets are not
indexed and are ignored in searches.

--
RelevantNoise.com - dedicated to mining blogs for business intelligence.

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]

Re: Search and Index Question ChuSoft
9/10/2007 10:57:10 AM
Is there anyway to index and search on the phrase with brackets?

[quoted text, click to view]

Re: Search and Index Question Hilary Cotter
9/10/2007 10:06:34 PM
try this:

select * from tablename where freetext(*,'"(specific text here)"')
and charindex('"(specific text here)",MyColumn) >0


--
RelevantNoise.com - dedicated to mining blogs for business intelligence.

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