0

I have a list of places, e.g "Auckland", "Wellington".

My current implementation, won't return these rows if "Auck" or "Welli" is typed.

I am using full-text search, (as there are 30 million rows), and using:

CONTAINSTABLE([Table], [Field], 'Auck')

This works great, but how can I get it to do partial matches whilst using my full-text index?

williamsandonz
  • 15,864
  • 23
  • 100
  • 186

2 Answers2

2

I have used the following for partial matches on full-text indexed columns.

SELECT * FROM [Table] WHERE CONTAINS([Field], '"*Auck*"');

Same applies for CONTAINSTABLE

SELECT * From CONTAINSTABLE([Table], [Field], '"*Auck*"');
obaylis
  • 2,904
  • 4
  • 39
  • 66
0

How about

CONTAINSTABLE([Table], [Field], 'Auckland OR "Auck*"')
TavoloPerUno
  • 549
  • 2
  • 7