Solved

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

Posted on 2013-06-04
2
487 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 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

Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

Question has a verified solution.

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

Suggested Solutions

There are some very powerful Data Management Views (DMV's) introduced with SQL 2005. The two in particular that we are going to discuss are sys.dm_db_index_usage_stats and sys.dm_db_index_operational_stats.   Recently, I was involved in a discu…
Data architecture is an important aspect in Software as a Service (SaaS) delivery model. This article is a study on the database of a single-tenant application that could be extended to support multiple tenants. The application is web-based develope…
Are you ready to implement Active Directory best practices without reading 300+ pages? You're in luck. In this webinar hosted by Skyport Systems, you gain insight into Microsoft's latest comprehensive guide, with tips on the best and easiest way…

739 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