0

I usually copy all text from appropriate columns into a single column and fulltext index that. Do you think that's the best way to do it, for relevancy, or should each column have its own index?

For example, if I had a blog table I would copy the title and a plain text version of the post to a single indexed column. To achieve the best relevancy, would you do this or index the title and the plain text post separately?

texelate
  • 2,460
  • 3
  • 24
  • 32

1 Answers1

0

This is a bit long for a comment.

The matches() expression can take multiple columns. So, in most cases, building a separate index on each column is reasonable. Particularly if you want to search each column separately.

You can review the documentation here.

Gordon Linoff
  • 1,242,037
  • 58
  • 646
  • 786