How to make sql 2005 full text search index short words

Posted on 2008-11-10
Last Modified: 2012-05-05
Would anyone have a suggestion on how to make SQL 2005 FTS index words like C# or C++? I know I could remove C (c) from noise words but FTS still ingores # and ++.

I have a text field that contains people's resumes (blobs) and inability to find C#, C++ et al is quite a show stopper.

Question by:lcdata

    Author Comment

    Just to add to this: I also have an xml field, FT indexed as well - same problem.

    If there's no solution with 2005, would anyone know if 2008 offers more flexibility (been looking on MS site, but their text is like IBM's - no one understands anything). How about alternative solutions? Something that well integrates with SQL 2005?

    LVL 75

    Accepted Solution

    FT Search considers # as a word breaker.  However see this article:

    Generally, the words broken at index time are stored in the catalogs exactly as broken by the word breakers. However, there are some exceptions. For example:

    c# is indexed as c (if c is not in your noise word list, see more on noise word lists later), but C# is indexed as C# (in SQL 2005 and SQL 2000 running on Win2003 regardless if C or c is in your noise word list). It is not only C# that is stored as C#, but any capital letter followed by #. Conversely, c++ ( and any other lower-cased letter followed by a ++) is indexed as c (regardless of whether c is in your noise word list).

    If that does not work for you will have to get creative.

    Author Closing Comment

    thank you for your time.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Looking for New Ways to Advertise?

    Engage with tech pros in our community with native advertising, as a Vendor Expert, and more.

    I've encountered valid database schemas that do not have a primary key.  For example, I use LogParser from Microsoft to push IIS logs into a SQL database table for processing and analysis.  However, occasionally due to user error or a scheduled task…
    INTRODUCTION: While tying your database objects into builds and your enterprise source control system takes a third-party product (like Visual Studio Database Edition or Red-Gate's SQL Source Control), you can achieve some protection using a sing…
    Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
    In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor ( If you're interested in additional methods for monitoring bandwidt…

    760 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

    11 Experts available now in Live!

    Get 1:1 Help Now