This filter will work. Have you called refresh before you executed the search and after you indexed the document? If it still does not work, gist a curl recreation (Elasticsearch Platform — Find real-time answers at scale | Elastic).
On Thursday, March 10, 2011 at 3:33 PM, K.B. wrote:
Hello,
I if one has an ArrayField like
field = ["Val1","Val2","Val3"]
and its not_analyzed by mapping then in case a Filter is tried to be
put over it:FilterBuilders.termFilter("field", "Val1");
the resulting query the flter is put to will allways have 0 results.
Is this intended or a bug?
Best