Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Convert like queries to Full Text Search

Status
Not open for further replies.

rtgordon

Programmer
Jan 17, 2001
104
US
How do I convert a query with a where clause like this:

WHERE column LIKE '%xyz%'
AND column LIKE '%123%'

into a full text search query assuming everything is configured and all catalogs are created on the proper fields?

Thanks,
Gordon
 
Check out the CONTAINS function in Books On-Line.

HTH,

Phil Hegedusich
Senior Web Developer
IIMAK
-----------
In one hundred years, none of this will matter. Keep a healthy perspective!
 
Sorry, I specifically meant leading AND trailing wildcards... I can't see that there is a way to do this with CONTAINS in BOL.

For example, I have a xyz-123 in the field I am searching. I want it to return this row if the user enters "xyz 123" as search criteria.

I can't seem to write a FTS query that will work like this.

Am I missing something?

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top