views:

40

answers:

1

I have a single table called "Indexes", it contains one nvarchar and three ntext columns (all Full Text Indexes). Index is up to date.

CONTAINSTABLE(Indexes, *), 'test', 5) //5 results

No matter what I change the above keyword too, it only returns the first 3-5 results. It should roughly return 90-120 results, for the above query.

SELECT count(*) FROM Indexes WHERE [Description] like '%test%' //122 results

How would I start to troubleshoot this problem?

+2  A: 

Your CONTAINSTABLE has the top_n_by_rank parameter set to 5

You'll never get more then 5 rows with this... the comment //5 results even mentions it..

You should use CONTAINSTABLE(Indexes, *), 'test')

gbn
Yep indeed that was the solution, I kept thinking 5 was the stopword list
Elijah Glover