Solved

MSSQL full-text search limitations

Posted on 2008-06-16
3
727 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
  • 2
3 Comments
 
LVL 42

Expert Comment

by:EugeneZ
Comment Utility
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
Comment Utility
EugeneZ,

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

Thanks
0
 
LVL 42

Accepted Solution

by:
EugeneZ earned 500 total points
Comment Utility
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

Nowadays, some of developer are too much worried about data. Who is using data, who is updating it etc. etc. Because, data is more costlier in term of money and information. So security of data is focusing concern in days. Lets' understand the Au…
Load balancing is the method of dividing the total amount of work performed by one computer between two or more computers. Its aim is to get more work done in the same amount of time, ensuring that all the users get served faster.
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.
Via a live example, show how to shrink a transaction log file down to a reasonable size.

762 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

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now