Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 SQL Server Development (2000)
 Full-Text Search w/ Wildcards

Author  Topic 

Ferox
Starting Member

18 Posts

Posted - 2005-04-27 : 11:01:52
Hi I'm using the full-text indexing on a table and I'm trying to implement a search where users can search for words and use wildcards themselves. However I'm working on a method so that can enter a wildcard in the middle of a word to get records where they are unsure of the spelling etc.

For instance, a search of 'ste*en' shoudl return results like 'Steven' and 'Stephen' etc. So if they are searching for word 'establishment' they can search for 'estab*ment' and it should return all the records using this query:

SELECT * FROM myTable WHERE CONTAINS(myField,'"estab*ment"')

If I do a wildcard at the end e.g:

SELECT * FROM myTable WHERE CONTAINS(myField,'"estab*"')

I get the results I am looking for. But the middle wildcard does not seem to work as expected even though it is the syntax used on MSDN and other SQL info sites.

Is there something I am not doing properly?
   

- Advertisement -