Solved

Full Text Search string

Posted on 2016-10-29
5
33 Views
Last Modified: 2016-11-15
Hi experts,
Below is the string sample which will be passed from UI
"Hello world" Test daterange:10012016-10312016 description:unique

This is what we are expecting as a search in SQL Server full text.
contains(*,'"Hello world"')
contains(*,'test')
contains(description,'unique')
date_of_record between '10012016' and '10312016'

Anything within double quotes is a phrase and description is a name of column in database table.

Any similiar solution or an idea would be very helpful.

Working with charindex, patindex etc..but running out of time, Help very much appreciated.

Thanks,
Ravi
0
Comment
Question by:raviprakash10
  • 3
5 Comments
 
LVL 18

Expert Comment

by:Pawan Kumar Khowal
ID: 41865181
Can you post your current query ? Also are you sure that you want to implement Full text search?

If yes,

Steps are-
1. Create a full-text catalog, if reqd.
2. Create the full-text index.
3. Modify the list of noise words, if reqd.
4. Modify the thesaurus for the language being used, if reqd.

Below is the really good blog url you can follow-

http://www.sql-server-performance.com/2010/full-text-search-2008/

Hope it helps!!
0
 

Author Comment

by:raviprakash10
ID: 41865184
Hi Pawan,

Thanks for your response.

IS there any concern with Full-Text Search?Appreciate you opinoin, before we move further along with this option. Are there any better options?

Here is the scenario.
Basically there is a table which gets inserted once every month around half a million records, and has around 50 columns. No inserts or deletes or updates until next month , where it gets truncated. We plan to create full text index on this and use the seacrh as described above.Does this solution fit the need?

Have no queries yet. Just finding best solution either with csutom .NET assembly with Regex /Regular expression or T-sql .

Any help is very much appreciated.
Thanks,Ravi
0
 
LVL 18

Accepted Solution

by:
Pawan Kumar Khowal earned 500 total points
ID: 41865197
Also can you provide me the T-SQL you are using currently.

I think yes you can try FTS.

Steps are-
1. Create a full-text catalog, if reqd.
2. Create the full-text index.
3. Modify the list of noise words, if reqd.
4. Modify the thesaurus for the language being used, if reqd.

Below is the really good blog url you can follow-

http://www.sql-server-performance.com/2010/full-text-search-2008/
0
 
LVL 45

Expert Comment

by:Vitor Montalvão
ID: 41866841
Ravi, you can and should use Full-Text search feature to perform queries on text fields (BLOB).
Just don't forget that this feature also requires maintenance because it also suffers from fragmentation. For that schedule regularly an ALTER FULLTEXT CATALOG REORGANIZE and ALTER FULLTEXT CATALOG commands.
0
 
LVL 18

Expert Comment

by:Pawan Kumar Khowal
ID: 41871713
@Author - Any luck with this?
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Let's review the features of new SQL Server 2012 (Denali CTP3). It listed as below: PERCENT_RANK(): PERCENT_RANK() function will returns the percentage value of rank of the values among its group. PERCENT_RANK() function value always in be…
Introduction SQL Server Integration Services can read XML files, that’s known by every BI developer.  (If you didn’t, don’t worry, I’m aiming this article at newcomers as well.) But how far can you go?  When does the XML Source component become …
This video shows, step by step, how to configure Oracle Heterogeneous Services via the Generic Gateway Agent in order to make a connection from an Oracle session and access a remote SQL Server database table.
Viewers will learn how to use the SELECT statement in SQL to return specific rows and columns, with various degrees of sorting and limits in place.

746 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