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

Tip: Looking for answers? Try searching our database.

Not getting proper result using contains

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Raj Gandhi - 27 Jun 2007 14:36 GMT
I am a software developer and working on one of the client application where
Full text search is required.

Requirement:
The search should allow to use whild cards.....

Problem:
the full text search does not work for postfix terms.....

I have three rows in my table
1. Marketing
2. Mark
3. Remark

When I search "Mark*" it will return me

Mark and Marketing  but not Remark

When I search using "*Mark*" it will return the same result

I am expecting that all rows should come but unfortunately I am getting same
result.

I am not sure where I am making mistake. I appreciate your time and effort
to help me.

e.g. if user specifies 'Mark' as keyword the search should match 'Mark',
'Marketing' and 'Landmark'.... right now the CONTAINS clause ignores the
'LandMark'

Thank you
Hilary Cotter - 28 Jun 2007 01:33 GMT
You are getting the proper result, but not the one you want. Wildcards only
work on suffixes not prefixes.

Signature

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

>I am a software developer and working on one of the client application
>where
[quoted text clipped - 29 lines]
>
> Thank you
Simon Sabin - 28 Jun 2007 23:23 GMT
Hello Raj,

To get prefix wildcards you need to store a reverse of the string and perform
two searches. Thats only possible if you content is text

Simon Sabin
SQL Server MVP
http://sqlblogcasts.com/blogs/simons

> I am a software developer and working on one of the client application
> where Full text search is required.
[quoted text clipped - 24 lines]
>
> Thank you
 
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.