Solved

MSSQL full-text search limitations

Posted on 2008-06-16
3
788 Views
Last Modified: 2008-06-23
Hi Experts,
I have 3 tables:
tblMaps - ID, Map
tblLocations - ID, Location
tblMap_Location - ID, MapID, LocationID

Each Map have between 1000-3000 Locations. Each Location is limited to 100 characters in length. tblMaps is expected to have between 2 to 2.5 million records.

I'm currently using full-text indexing on tblLocations.

I found that the CONTAINS statement has some limitations. It is unable to perform wildcard search such as: *ork, Y*k or *or*. I would have to use LIKE statement for those searches.

My question are:
1) Is there a way to perform the wildcard searches that I specified using CONTAINS statemnt?
2) Does the LIKE statement benefit from full-text indexing?

Thanks
0
Comment
Question by:noobe1
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 43

Expert Comment

by:Eugene Z
ID: 21796516
try:
SQL Server does not
support a leading wildcard in full text searches
Try the * after your search criteria  
 
select * from yourTablename where contains(yourcolumnname,'Y*"')  
also check:
http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=3118578&SiteID=1
--
all idea of FTS: do not use  "like"

0
 

Author Comment

by:noobe1
ID: 21799283
EugeneZ,

I know that using wildcard at the end of the search criteria works, but that really limits the search results.

Thanks
0
 
LVL 43

Accepted Solution

by:
Eugene Z earned 500 total points
ID: 21802493
0

Featured Post

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Why is this different from all of the other step by step guides?  Because I make a living as a DBA and not as a writer and I lived through this experience. Defining the name: When I talk to people they say different names on this subject stuff l…
Ever needed a SQL 2008 Database replicated/mirrored/log shipped on another server but you can't take the downtime inflicted by initial snapshot or disconnect while T-logs are restored or mirror applied? You can use SQL Server Initialize from Backup…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
Via a live example, show how to setup several different housekeeping processes for a SQL Server.

739 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question