Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6157267
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T20:45:24+00:00 2026-05-23T20:45:24+00:00

I have decided to change a search from using LIKE ‘%’ + @searchTerm +

  • 0

I have decided to change a search from using LIKE '%' + @searchTerm + '%' to use a FULLTEXT index. I’m using SQL Server 2005.

I’ve created a catalog, like so:

CREATE FULLTEXT CATALOG CatalogName AS DEFAULT

I’ve created the index, like so:

CREATE FULLTEXT INDEX ON Table (col1, col2) KEY INDEX TablePK WITH CHANGE_TRACKING AUTO

And then I use it like so:

SELECT col1, col2
FROM Table t
    INNER JOIN FREETEXTTABLE(Table, *, @SearchTerm) s ON s.[Key] = t.Id
ORDER BY s.[Rank] DESC

It returns the correct results, but it takes about 30 seconds to run the search if it hasn’t run for a while. After it has run once, all further searches are instant. If I leave it alone and come back in an hour, the first search is slow again. It seems to happen even if the table is not updated in the meantime.

I’ve tried this on two completely different databases, on completely different servers, and the behaviour is the same. On one of these databases, the table being indexed is very small (50 rows), and on the other it is a little larger (1000 rows).

Can anyone help me work out what the problem is and how to solve it? My only alternative is either to abandon FULLTEXT altogether, or make a service to run the search query every n minutes!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T20:45:25+00:00Added an answer on May 23, 2026 at 8:45 pm

    By default, SQL Server unloads word breaker after a certain period of inactivity (300 seconds, AFAIR).

    Reloading it requires checking the signature which requires an Internet request to the certificate issuer.

    Please run this on the dev server:

    EXEC    sp_fulltext_service
                    @action = 'verify_signature',
                    @value = 0
    

    and see if it helps.

    Update:

    http://support.microsoft.com/kb/915850/en-us

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have decided i'd like to do an ambitious mood change depending on the
I have decided to change all my /dyanmic.php?UID=... pages to /static/Name-From-DB . I have
I have started a new web application and have decided to use jquery as
I have setup subversion 1.6.5 on Fedora. I have decided to use a single
I have decided to use ASP.NET MVC to develop multi page (registration) forms in
I have create a simple grid that retrieves data from a server through php.
Due to IE's inability to fade transparent PNG's I have decided to change my
I've asked a question few hours ago - afterwards decided to change my sql
I am writing an iPhone application and I have finally decided to use RestKit
I would like to be able to use Full text search in Code First

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.