Quantcast
Viewing all articles
Browse latest Browse all 15889

Full text searching with alphanumeric values

I'm running SQL Server 2005, Win Server 2003 SP2.

I've edited the noise words txt files at Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\FTData (noiseENU.txt, noiseENG.txt, and noiseNEU.txt) to remove numbers (0-9). And I've rebuilt and deleted/recreated my indexes without any seeing any changes in the search results.

I need to search for records using a name that includes numbers. For example: "ABC12345", "ABC12346", "ABC12347", "ABCDEF", "12-345-654", "ABC-12F" etc.

However, whenever I use the FULLTEXT search (or CONTAINS), I don't get any results.

Example:
SELECT  * FROM CONTAINSTABLE(myTable, myField, 'ABC123');
SELECT  * FROM FREETEXTTABLE(myTable, myField, 'ABC123');

There are 0 results from both of the above searches.

When I use LIKE, then I will get results. For example:
SELECT  * FROM myTable where myField LIKE '%ABC123%';

Is this possible? If so, what changes do I need to make to my catalogs, indexes, tables, etc.

Thanks

Viewing all articles
Browse latest Browse all 15889

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>