Home > Back-end >  SQL Server full-text search gets only one value
SQL Server full-text search gets only one value

Time:06-24

enter image description here

enter image description here

It only gets one value back is it possible to get multiple values inside? Like get test, test1 and test2.

CodePudding user response:

Looking at each of the three fully visible example rows:

  • ID=25 No match, because IsDeleted is 1
  • ID=26 Match. This is the row you see in the results.
  • ID=27 NO MATCH, because Contains() matches full words by default. This means test2 does not match the Contains( 'test') predicate.

Therefore the single row observed in the results is correct.

I know the full-words thing can surprise people, but it really is what you want more often then not. For example, if you search for Contains( 'Kansas') you don't usually want records for Arkansas.

  • Related