Combining multiple filters and aggregations
Closed this issue · 1 comments
michaelbironneau commented
How should one go about combining multiple filters with aggregations, can this be done using CompoundFilter or FilterWrap? At the moment I'm trying to translate a query that uses aggregations, a range filter, and a term filter, and I can't find a way to get all three into the same query. I tried using CompoundFilter
, but it seems that the only way to use it is to serialize it to JSON - in which case I can no longer combine it with the aggregations.
Thanks for a great library by the way!
michaelbironneau commented
Ah, this was my misunderstanding, I was using search(...).Query() instead of .Filter().