Solved

SQL 2005 - Full text catalog - Search with Freetext (with partial search ) doesn't populate values

Posted on 2013-06-04
2
474 Views
Last Modified: 2013-06-05
Hi
I am using FTcatalog for SQL 2005.

I am trying to get the value for the column Description whose datatype is ntext, null.

when I do a serach with complete descrition like 'tester' -- getsthe data.

But when I do it with "test" -- Nothing displays.

SELECT * FROM Notes WHERE FREETEXT (Description,'hydrogel')  -  Works fine

SELECT * FROM Notes WHERE FREETEXT (Description,'hydro')  -- Nothing displays


I would like to know if there is any restriction for the datatype ntext withing frreetext for getting partila search phrases...


Let me know
0
Comment
Question by:MYSQLuser
2 Comments
 
LVL 19

Expert Comment

by:Rimvis
Comment Utility
Hi MYSQLuser,

FREETEXT does not work with partial matches. Use CONTAINS instead:
http://technet.microsoft.com/en-us/library/ms142492%28SQL.90%29.aspx
0
 
LVL 39

Accepted Solution

by:
lcohan earned 500 total points
Comment Utility
Plus you need to check the "noise" files as many (noise considerred words) can be listed in there so they will be treated as such and no data will be returned (note sure if "test" is in there or not as I don't have a 2005 install handy right now).

http://msdn.microsoft.com/en-us/library/ms142551(v=sql.90).aspx


I also suggest you look at "CONTAINSTABLE and FREETEXTTABLE " because "The CONTAINS and FREETEXT predicates can only be used inside a WHERE clause of a SELECT statement. CONTAINSTABLE and FREETEXTTABLE rowset-valued functions can be used in the FROM clause of a SELECT statement."

http://technet.microsoft.com/en-us/library/ms142583(v=sql.90).aspx


oh...and plus for ANY ntext,nchar, nvarchar you MUST add the N in front of the string like:


N'SearchString'...
0

Featured Post

Zoho SalesIQ

Hassle-free live chat software re-imagined for business growth. 2 users, always free.

Join & Write a Comment

If you having speed problem in loading SQL Server Management Studio, try to uncheck these options in your internet browser (IE -> Internet Options / Advanced / Security):    . Check for publisher's certificate revocation    . Check for server ce…
Introduction This article will provide a solution for an error that might occur installing a new SQL 2005 64-bit cluster. This article will assume that you are fully prepared to complete the installation and describes the error as it occurred durin…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

743 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

13 Experts available now in Live!

Get 1:1 Help Now