0

I have a table which contains 7 columns and I have created a full text index on the table. However I noticed that a search using freetext() does not return any rows on 2 of the columns Its returns rows on other columns.

Here is my query

select * from dbo.ModelCategoryValues
where freetext(economyvalues,'24,29')
and freetext(featurevalues,'10')
and freetext(pricerangevalues,'15')
and freetext(performancevalues,'18,20')
and freetext(economyvalues,'22,24')
and freetext(usevalues,'28')

This returns expected results

However when I run the below no rows are returned

select * from dbo.ModelCategoryValues
where freetext(cartypevalues,'1')

I can see rows corresponding to the above data. I have tried everything from re-populating index to re-creating it but no success.

Pred
  • 8,789
  • 3
  • 26
  • 46

1 Answers1

0

FREETEXT by default excludes the records having "STOPLIST" Values. To resolve the problem, set the StopList to 'OFF' using following query :-

ALTER FULLTEXT INDEX ON DealerSearch SET STOPLIST = OFF