Full Text Search - Returning Document Content

Hi Alfie,
FTS supports stored fields, which is one easy way to get what you’re after. When you create a full text index, you can optionally copy the actual data from the document into the index itself if you want to. Normally, you don’t need to because you still have the documents themselves in Couchbase, and you can always do a get in your application to retrieve them. Below is a picture that’ll help you find the setting to enable “store” when you create an index. It’s a setting at the field level, and you can even enable it for the whole index if you go to “advanced”. Obviously, doing this takes up more space in the index but it’s the only way in this version to get result snippets and highlighting back.

This is covered in more detail in the documentation. Here’s the part about creating full text indexes. Let me know if that helps.