Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

MSSQL full-text search limitations

Posted on 2008-06-16
3
Medium Priority
?
814 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 1500 total points
ID: 21802493
0

Featured Post

Enroll in September's Course of the Month

This month’s featured course covers 16 hours of training in installation, management, and deployment of VMware vSphere virtualization environments. It's free for Premium Members, Team Accounts, and Qualified Experts!

Question has a verified solution.

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

It is possible to export the data of a SQL Table in SSMS and generate INSERT statements. It's neatly tucked away in the generate scripts option of a database.
An alternative to the "For XML" way of pivoting and concatenating result sets into strings, and an easy introduction to "common table expressions" (CTEs). Being someone who is always looking for alternatives to "work your data", I came across this …
Using examples as well as descriptions, and references to Books Online, show the documentation available for date manipulation functions and by using a select few of these functions, show how date based data can be manipulated with these functions.
Viewers will learn how the fundamental information of how to create a table.

688 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