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 / October 2007

Tip: Looking for answers? Try searching our database.

FULL TEXT SEARCH - PROBLEM

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
in da club - 31 Oct 2007 16:11 GMT
I have query like that

SELECT

Urun_ID

,Urun_Ad

FROM TBL_URUNLER

WHERE CONTAINS(Urun_Ad, '"*mta1000-*"' )

it returns

62 MTA1000-1

When i chance the search phrase mta1000-1

it returns nothing.

Urun_Ad is defined  as NVARCHAR(50)

in my tbl_urunler table .

I rebuilded my fulltextcatalog before running my query

What can be the problem ?
Daniel Crichton - 31 Oct 2007 18:30 GMT
in wrote  on Wed, 31 Oct 2007 17:11:39 +0200:

> I have query like that

> SELECT
> Urun_ID
> ,Urun_Ad
> FROM TBL_URUNLER
> WHERE CONTAINS(Urun_Ad, '"*mta1000-*"' )

Why are you using *? It doesn't work like that - FTS breaks up the indexed
columns into words, you can use a * at the end of a term for searching for
words starting with the term but it's ignored for the start. Also some
characters are ignored, so the hyphen is probably unnecessary too. This is
basically turned into

CONTAINS(Urun_Ad,'"mta1000*"')

and could also be written as

CONTAINS(Urun_Ad,'"mta1000"')

and it would still find the same row(s).

> it returns
> 62 MTA1000-1

> When i chance the search phrase mta1000-1
> it returns nothing.

What is the actual CONTAINS clause you are using? If it's

CONTAINS(Urun_Ad,'"mta1000-1"')

then if the 1 is not indexed (as it's in the noise word file by default),
then it won't find that "phrase" because the 1 isn't indexed. "mta1000-1" is
the same as looking for "mta1000 1", and if the 1 isn't indexed then the
phrase won't be found.

What is in your noise words list?

Dan
Hilary Cotter - 01 Nov 2007 00:25 GMT
Is 1 in your noise word list?

Signature

RelevantNoise.com - dedicated to mining blogs for business intelligence.

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

>I have query like that
>
[quoted text clipped - 23 lines]
>
> What can be the problem ?
 
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.