[Disclaimer: I work with Yuting on Product Search at Amazon] I think this is super interesting to explore! It would be useful to have an implementation like LongRangeFacetCounts / DoubleRangeFacetCounts that "discovers" its own ranges based on the distribution of the underlying data, rather than requiring the user to specify the ranges up-front.
Could you please create a Jira issue to track this work? That would be a good place to track progress, as well as any suggestions others might have on how to best implement this. Thanks for bringing up the idea! Cheers, -Greg On Wed, May 26, 2021 at 3:46 PM Yuti G <[email protected]> wrote: > > Hello everyone, > > I have been exploring the possibilities of getting dynamic numeric range > facet counts without users specifying ranges. > > An example use-case might be a price filter on an e-commerce site. Instead of > requiring ranges to be pre-defined before doing facet counting in Lucene, it > would be really cool if Lucene could examine the matching products and > automatically determine relevant price ranges. > > I saw this blog post > <https://www.elastic.co/guide/en/elasticsearch/reference/7.9/search-aggregations-bucket-variablewidthhistogram-aggregation.html> > where Elasticsearch implemented similar functionality and think it would be > useful to bring a similar idea into Lucene itself. > > I am very early in thinking about this. Has anybody else thought about this? > > If anyone is also interested or has any thoughts. I am more than happy to > learn from you. Please let me know :) > > Thanks, > Yuting --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
