Groups | Blog | Home
all groups > sql server full text search > august 2005 >

sql server full text search : Wild Card Search


Sathian
8/30/2005 12:00:00 AM
Hello All,

We implement the wild card search using 'Contains' in full Text Search.
However the search with the word portion within the word could not be
achieved
In otherwords if I seach with the key word 'plan' the test result should
include the record having the word 'Testplan'.
Is this possible in Full Text Search? (Currently if we search for 'test' it
gives the result with the word 'Testplan'.)
Please give us an idea, if possible.

Thanks in anticipation

Sathian

Hilary Cotter
8/30/2005 10:45:38 AM
You can also use the Thesaurus option in SQL 2005 (supported) and SQL 2000
(unsupported) to expand searches on plan to search on testplan as well as
plan. This will work if you know in advance all the prefixes you wish to
search for.

Check this link out for more info:

http://www.indexserverfaq.com/sqlthesaurus.htm

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

Daniel Crichton
8/30/2005 12:43:43 PM
Sathian wrote on Tue, 30 Aug 2005 17:07:07 +0530:

[quoted text, click to view]

FTS allows searching on the start of words only (eg. plan* will find all
words that start with plan, or where the entire word is plan), not parts in
the middle or at the end. You will need to revert to using LIKE against the
column to do this, or if you only want to look for the ends of words and
require FTS then duplicate the column in reverse order and add to your FTS
catalog (so for each row you have 2 columns that are indexed, one being the
original data, one being the same data in reverse character order).

Dan

AddThis Social Bookmark Button