Search by 'all values from a document must be contained in query'


I'm indexing documents with list of required features (int[] A). And then I
want to filter docs by the list of available features (int[] B). So that
all required features must be in a list of available (A & B = A).

I haven't found any appropriate filter for this and understand that this
problem is hard to solve with inverted index.
I wonder if there any tricky way to do it? Maybe its possible to set
minimum_should_match of bool filter to the number of required features
(A.lenght) or something else.

Any thoughts will be helpful.


You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
To view this discussion on the web visit
For more options, visit