I have an index in elasticsearch (bus) with an array field and a custom analyzer for ngram with min_ngram = 1 and max_ngram = 10.
Field example
field1: [foo, bar, bof]
I create a query with the value of field1 'f' and returns documents containing 'f' in one of the values ββin field1.
Question: Is it possible to return only matching values ββin an array, for example. in the case of field 1 and the query 'f', only "foo" and "bof" will be returned, and "bar" will be closed, for example. field1: [foo, bof]?
smolnar
source share