SQL2008 Full Text Search

by dotnetpete 8. September 2008 21:26

Greg Low did an amazing talk at Tech.Ed about full text seach (FTS) in SQL2008. I hadn't had much exposure to FTS so it was good to see what it had to offer. I thought it was just an efficient way to do a like search in a text field. It's so much more. 

For example, FTS out of the box can index may common file formats i.e. doc, xls. You can get the full list of supported document types by running the following query:

select document_type, path from sys.fulltext_document_types

Here's a detailed article on how to setup a FTS catalog. One this that is not all that clear is that on the "Select Table Columns" step, if your FTS column is a data type of image you are required to select another column in the table the holds the document type of the document in the image column. This is how FTS knows which filter to use to index the data.

http://blog.sqlauthority.com/2008/09/05/sql-server-creating-full-text-catalog-and-index/ 

I found an excellent article that explains the capabilities of FTS. It's SQL2005 specific, however everything (to my knowledge is supported in SQL2008).

http://www.developer.com/db/article.php/3446891 

Things to investigate:

  1. How to install and activate other predefined filters (PDF not supported by default),
  2. For the hard core, how to write your own filter extension.
Also here's the full article on MSDN which explains FTS in SQL2008 in depth:
 
http://msdn.microsoft.com/en-us/library/cc721269.aspx
 
Greg Low also has an interesting article on using the sys.dm_fts_parser DMF to test how a string is interpreted by the FTS parser.
 
Parser DMF 

Tags: ,

SQL

Comments

8/15/2009 6:45:44 PM #

Nice post! GA is also my biggest earning. However, it�s not a much.

cash loans

9/9/2009 1:43:10 AM #

Interesting article. Were did you got all the information from... Smile

bad credit loans

9/22/2009 3:57:15 AM #

I'm searching for sites related to web hosting and specifically comparison hosting linux plan web, your site came up.

payday loans

11/12/2009 12:43:17 AM #

Hrmm that was weird, my comment got eaten. Anyway I wanted to say that it's nice to know that someone else also mentioned this as I had trouble finding the same info elsewhere. This was the first place that told me the answer. Thanks.

christian dating

11/13/2009 3:17:40 AM #

I wanted to thank you for this great read!! I definitely enjoying every little bit of it I have you bookmarked to check out new stuff you post

char broil grills

11/14/2009 12:43:00 AM #

Admiring the time and effort you put into your blog and detailed information you offer! I will bookmark your blog and have my children check up here often. Thumbs up!

Lyrics

11/16/2009 2:34:31 AM #

Excellent read, I just passed this onto a colleague who was doing a little research on that. And he actually bought me lunch because I found it for him smile So let me rephrase that: Thanks for lunch!

free online dating

11/16/2009 4:26:13 AM #

This article gives the light in which we can observe the reality. this is very nice one and gives indepth information. thanks for this nice article

submit press release

11/17/2009 6:33:55 AM #

Great post! I am just starting out in community management/marketing media and trying to learn how to do it well - resources like this article are incredibly helpful. As our company is based in the US, it?s all a bit new to us. The example above is something that I worry about as well, how to show your own genuine enthusiasm and share the fact that your product is useful in that case.

Breckenridge ski vacation

Add comment




biuquote
Loading



Powered by BlogEngine.NET 1.5.0.7
Theme by Mads Kristensen

dotnetpete

Hi I'm dotnetpete. I'm an owner and software developer at Advantech Software in Brisbane, Australia. My passions are writing great software and coffee.

RecentPosts