0

I have a column in my table to which I have added a Full Text Index. When I write a query to do contains on that particular column, the query gives the output of those records which matches with contain and which were added to the table before 3-4 hours and later. Those records which are added recently to the table don't show up in the output even though their text matches with the contains text.

Create table Table1 (Id int, Name varchar(20), Message varchar(1000), CreatedAt datetime)

Message is the column which has full text index.

Can someone please help me as to why is this behavior of SQL and what can I do to rectify this?

Hitesh
  • 3,449
  • 8
  • 39
  • 57

1 Answers1

0

It sounds like your full text index isn't being populated after changes to the data. You should either set up automatic population of the index or perform manual population whenever you update the data.

More here: MSDN: Populate Full-Text Indexes

Keith
  • 20,636
  • 11
  • 84
  • 125