Solved

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

Posted on 2013-06-04
2
476 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
ID: 39221796
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
ID: 39223630
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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Suggested Solutions

by Mark Wills PIVOT is a great facility and solves many an EAV (Entity - Attribute - Value) type transformation where we need the information held as data within a column to become columns in their own right. Now, in some cases that is relatively…
Use this article to create a batch file to backup a Microsoft SQL Server database to a Windows folder.  The folder can be on the local hard drive or on a network share.  This batch file will query the SQL server to get the current date & time and wi…
Need to grow your business through quality cloud solutions? With everything required to build a cloud platform and solution, you may feel like the distance between you and the cloud is quite long. Help is here. Spend some time learning about the Con…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

947 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

19 Experts available now in Live!

Get 1:1 Help Now