Implementation was done in https://issues.apache.org/jira/browse/SOLR-13272, but I don't think there's a SolrJ model object for arbitrary ranges. Dario, until it's contributed (which is quite welcome btw; just raised https://issues.apache.org/jira/browse/SOLR-17114) you can pass just instances of HashMap (I prefer the linked ones) and ArrayList like it's described https://solr.apache.org/docs/9_4_0/solrj/org/apache/solr/client/solrj/request/json/JsonQueryRequest.html#withFacet(java.lang.String,java.util.Map)
On Wed, Jan 10, 2024 at 3:33 PM <dario.v...@coop.ch> wrote: > Hello Everyone at Solr > > When someone wants build a range facet with arbitrary range one could > build a request with the help of the fallowing documentation. > https://solr.apache.org/guide/8_6/json-facet-api.html#arbitrary-range > > 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? > > With kind regards, > > > Coop Genossenschaft > > Dario Viva > > 4002 Basel > -- Sincerely yours Mikhail Khludnev