Filter for Iterable containing all values

I was updating some old java Code from ES 1.4.4 to ES 6.5 and stumbled over some code i do not find a solution in the new version.

I want to filter for documents with an iterable field to contain all given elements. E.g. tag may contain an array ["a","b","c"] and the my filter is an array with ["b","c"]. only documents with all given tags should be in the query result.

in the old version it worked with termsFilterBuilder.execution(TermsFilterParser.EXECUTION_VALUE_AND); but the filters are gone in 6.5 and part of the queries now. unfortunatly the TermsQueryBuilder does not have anything like the execution method.
i could not find any alternative, so what would be the best way to do this?

Thanks in advance

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.