This message was deleted.
# community-help
s
This message was deleted.
k
Our range faceting currently requires passing fixed ranges in the query. It will be useful for Typensese to do this automatically but the tricky thing is arriving at the bucket sizes. We can find the min and max price but deciding how to split that range into buckets still needs to be a user input.
j
For us, the best input would be how many buckets we want, and then have typesense just evenly split the totalt range in that number of buckets. But I understand that that’s a feature requst. However, our urgent problem is the min/max values. The ranges in between is just needed for the graph, but when we’re missing the min/max values the filter-slider ends up lying to our user. What is the best way for us to retrieve the max/min values for the indexed prices?
k
Min max during range faceting?
j
The max/min indexed values. I made the incorrect assumption that they would be included in the faceting result given a large enough max_facet_values. On our product page we have a range slider where it’s possible to filter on the price range. For that, we need to know what the lower and upper bound should be.
k
When you facet on integer or float fields, a stats is returned as part of facet results. That's not enough?
j
Doh! You’re absolutely right. Sorry for wasting your time with that question. Thank you!
k
No problem!