tantivy icon indicating copy to clipboard operation
tantivy copied to clipboard

Histogram: Smarter bounds for bucket creation

Open PSeitz opened this issue 2 years ago • 0 comments

Currently the histogram pre-creates buckets in the segment collector for the whole data range in the fast field, adjusted by hard_bounds or extended_bounds if set.

In a use case where the histogram is a sub_aggregation from another aggregation on the same field which applies the some bounds, these bounds should be forwarded.

E.g.

Range on a timestamp, one bucket per month, and inside each bucket a histogram on the timestamp.

PSeitz avatar May 12 '22 04:05 PSeitz