Couchbase FTS best practice

Hello everybody,

I have a simple question, what’s the best way for create a FTS on different document ‘type’.
I have 3 types of document couchbase, that I want index, so I have 2 options :

  • only one index with differents mapping types
  • 3 indexes with your mapping type dedicate

It’s only a question for know the best practice on Couchbase fts.
thanks in advance

Hi @jejom43,

In the future, you might want to ask in the FTS forums: https://www.couchbase.com/forums/c/couchbase-full-text-search

I’m not really a fan of the “best practice” term. I think it depends on your use case. If you want a single search, then I think a single index would make sense. If you want to use different searches in different contexts, you might want to break them up into three indexes. Another option might be to use a faceted search, as outlined in this blog post: https://blog.couchbase.com/using-facets-couchbase-nosql-full-text-search-query/