Hey Shawn I know that this specific API exists in java. I also used it before and it works as it should. But my Question was specificly about arbitrary ranges, this API only accepts start, end and gap. Which is fine for a lot of use cases, but sometimes one wants to have custom sized ranges and that's where one would need another API. Thanksfully Mikhail Khludnev has already opened an Jira about this. I would like to contribute, but I feel I'm not quite qualified to do that. https://issues.apache.org/jira/browse/SOLR-17114 Thanks, Dario
On 2024/01/10 15:30:44 Shawn Heisey wrote: > On 1/10/24 05:32, dario.v...@coop.ch wrote: > > But when you want to use this from java with the solrj client I did not > > fond a good way to do this. > > https://solr.apache.org/guide/8_2/json-facet-api.html#range-facet > > > > What would be the preferred way to do this? > > At the URL you linked, it opens with a "curl" button highlighted. Right > next to that is a "SolrJ" button ... click on that, and you'll see how > to do it in SolrJ. > > Thanks, > Shawn > >