$bucketAuto for number facets
As a developer, I would like to have functionality for NumberFacets similar to the $bucketAuto operator, so that I can define the number of buckets I want instead of setting the boundaries myself.
This function is helpful in situations where you don't know the boundaries or can't calculate them easily.
Example:
myNumberFacet: {
type: 'number'
path: 'path.to.my.field'
buckets: 1000
}
13
votes

-
Jonas Trettin commented
This is a really useful function. In some use cases, you really don't know the boundaries beforehand. In some cases, you don't even know the min/max values.