How to construct elasticsearch query dynamically based on document attribute in spring-data-elasticsearch. What construct should be used?
POST /foos/_search?size=0 { "query": { "exists": { "field": "bar" } }, "aggs": { "total_bars": { "terms": { "field": "bar" } } } }
2.1m questions
2.1m answers
60 comments
57.0k users