Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

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

Posted on 2013-06-04
2
Medium Priority
?
501 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
[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 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 40

Accepted Solution

by:
lcohan earned 1500 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

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

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

So every once in a while at work I am asked to export data from one table and insert it into another on a different server.  I hate doing this.  There's so many different tables and data types.  Some column data needs quoted and some doesn't.  What …
This article explains how to reset the password of the sa account on a Microsoft SQL Server.  The steps in this article work in SQL 2005, 2008, 2008 R2, 2012, 2014 and 2016.
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …

604 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