How can I create FiltersAggregation
query using JEST AggregationBuilders
or similar? I looked at FiltersAggregationIntegrationTest
but query part is defined directly by JSON and I need something more like AggregationBuilders
(as I'm using this for standard term aggregation for example)
Link to FiltersAggregationIntegrationTest
:
https://github.com/searchbox-io/Jest/blob/master/jest/src/test/java/io/searchbox/core/search/aggregation/FiltersAggregationIntegrationTest.java
I've one possibility:
This is a filter by Type, but the FilterBuilders has a termFilter too.