We would like to use the new FTS feature available in 7.X version of Couchbase Enterprise Server. When we are playing around with a document containing a field of type “string” the match query works fine with partial match of text in String. But when we apply the same for the field of type “array” containing list of String. It’s not working. However it is working as an exact match of the text. Our expectation is that it should also fetch the documents with partial match. Below is the example provided what we are trying in our System.
Query used to find the documents matching String “base”
{"query":{ "match": "base", "field": "tags" }}
In return we are getting the following message from the Server
“No results found for your query.
Please check your search term(s) and/or use the syntax help link under the search field”
Try using a custom analyzer with a whitespace tokenizer and ngram token filter (for e.g min:4, max:10) along with the to_lower token filter (for case insensitive search) - Create a Custom Token Filter | Couchbase Docs for the field tags.