I'm looking for best approach to make complex query to Elasticsearch with OR logic from java.
I really need something like ((A and B) or (C and D) or (E and F and G)).
Now I using ElasticsearchTemplate and org.springframework.data.elasticsearch.core.query.Criteria.class
.
But I cannot implement OR logic in one query and I have to do separate requests to Elasticsearch:
- one for (A and B),
- one for (C and D), and so on...