简体   繁体   中英

Elastic Search Date Histogram Bucket Count Filtering

Is it possible to apply a filter to date histogram buckets ? For example return only buckets that are below a certain value. I was looking to do it with scripts but dont know how to access buckets in script, so if anyone knows anything about that, it would be very very very helpful

At this time you cannot filter the result of an aggregation. This is something that the team is considering but is not in place.

See this issue:

https://github.com/elasticsearch/elasticsearch/issues/8110

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM