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 2006

Tip: Looking for answers? Try searching our database.

CONTAINS strange behavior

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
LeCitadin - 26 Jul 2006 18:47 GMT
Hi,

I am experiencing a strange behavior in a full text search using the
CONTAINS predicate.

SELECT SomeField
FROM SomeTable
WHERE  CONTAINS(SomeField, 'D-2001-286')

The result is
SomeField
----------------
D-2001-286
D-2002-286

The only explanation that could make some sense regarding the second
line in the result is the precense of the dash (-) caracter.  I did not
found any information regarding this caracter in a CONTAINS expression.

By trial an error, I found that the following query returns a list of
values that does not correspond to the value sought.

SELECT SomeField
FROM SomeTable
WHERE  CONTAINS(SomeField, '"D*"')

The result is
SomeField
----------------
02-00005-8601
134500-04-0003
88-03-27

and so on.

Any ideas why this is appening ?

Thanks in advance

Pierre Boucher
Hilary Cotter - 27 Jul 2006 02:03 GMT
Did you remove d from your noise word list? If not remove it and rebuild
your catalog.

Signature

Hilary Cotter
Director of Text Mining and Database Strategy
RelevantNOISE.Com - Dedicated to mining blogs for business intelligence.

This posting is my own and doesn't necessarily represent RelevantNoise's
positions, strategies or opinions.

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

> Hi,
>
[quoted text clipped - 36 lines]
>
> Pierre Boucher
LeCitadin - 27 Jul 2006 15:02 GMT
Hi Hilary,

Thanks for the answer.

I forgot to mention that when using the query CONTAINS(SomeField,
'"B*"') or CONTAINS(SomeField, '"E*"'), it returns the expected
results.  The problem seams to be with CONTAINS(SomeField, '"C*"') and
CONTAINS(SomeField, '"D*"') (so far).  So I am trying to find an
explanation about this specific behavior.

Pierre Boucher

> Did you remove d from your noise word list? If not remove it and rebuild
> your catalog.
[quoted text clipped - 53 lines]
> >
> > Pierre Boucher
 
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.