Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
DB Engine
SQL ServerMSDESQL Server CE
Services
Analysis (Data Mining)Analysis (OLAP)DTSIntegration ServicesNotification ServicesReporting Services
Programming
CLRConnectivitySQLXML
Other Technologies
ClusteringEnglish QueryFull-Text SearchReplicationService Broker
General
Data WarehousingPerformanceSecuritySetupSQL Server ToolsOther SQL Server Topics
DirectoryUser Groups
Related Topics
MS AccessOther DB ProductsMS Server Products.NET DevelopmentVB DevelopmentJava DevelopmentMore Topics ...

SQL Server Forum / Other Technologies / Full-Text Search / July 2005

Tip: Looking for answers? Try searching our database.

Contains Clause and Single Characters

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
cbuda - 20 Jul 2005 14:54 GMT
I have a commerce server database that uses a full text index to search
product numbers and descriptions.  My issue is that some of my product
numbers contain single characters, "EMT 1" for example, and the Contains
clause does not seem to treat this phrase as an exact match search when I do
something like

select *
from <table>
where contains(*, '"EMT 1"')

It finds that product and a number of other products that happen to contain
EMT in the description.  Is there any way that I can get the index to
recognize the entire string?  It seems that it treats the "1" as a noise word
and just drops it from the criteria.  

I have tried stripping out all puncuation and white space from the product
number and adding that value to the FT Index but it complicates any Keword
searches that may have valid white space in that I can not universally strip
white space out of the criteria that the user entered to try to get a match.

Chris
Daniel Crichton - 20 Jul 2005 16:39 GMT
cbuda wrote  on Wed, 20 Jul 2005 06:54:06 -0700:

> I have a commerce server database that uses a full text index to search
> product numbers and descriptions.  My issue is that some of my product
[quoted text clipped - 16 lines]
> strip white space out of the criteria that the user entered to try to get
> a match.

Edit the noise word file for the language you are using, removing everything
but leaving a single line with a space on it. Then rebuild the index -
everything will now be indexed.

Dan
cbuda - 21 Jul 2005 02:22 GMT
Works perfectly, thanks!

> cbuda wrote  on Wed, 20 Jul 2005 06:54:06 -0700:
>
[quoted text clipped - 24 lines]
>
> Dan
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.