I need a Plugin for ElasticSearch to do some special queries against arrays. As far as I found out ElasticSearch does not support my requirements.
First requirement: I have some ingredients and want to query all recipes that i can cook with my available ingredients.
Second requirement: I want to query all recipes where exact N ingredients are missing.
Third requirement: I want to query all recipes where up to N ingredients are missing.
This thread describes the first requirement:
[url removed, login to view]
Furthermore it should be possible to combine this query/filter with the common ElasticSearch filters.
The source code will be published on github.
I created a test scenario that should also be implemented in JUnit Integration test (creating index, adding data and searching):
The integration test could look like this: