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

Hi!

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.

Thanks!
Max

--
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 elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/cbea8916-12e0-4ae4-bc4c-577259fc9185%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.