lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Naman Asati <>
Subject Issue regarding range faceting inside pivot facets using solrj
Date Thu, 20 Apr 2017 11:40:26 GMT

I am using Solr 6.3.0 with Fusion 1.2.8.

I am having an issue doing range faceting INSIDE the pivot faceting using
the solr-solrj-5.0.0.jar.

Let us consider 3 fields A, B and C.
I want to do a range facet for A and pivot faceting of (B, C, Range facet
of A).

Code :
ModifiableSolrParams params = new ModifiableSolrParams();
params.add("facet.range","{!tag=r1}A") ;
params.add("f.A.facet.range.start","0") ;
params.add("f.A.facet.range.end","100") ;
params.add("","10") ;
params.add("f.A.facet.range.hardend","true") ;
params.add("facet.pivot","{!range=r1}B,C") ;

The query formed from this is working fine when I copy it and hit it on the
browser, but using solrj, it gives SolrServerException.

java.lang.RuntimeException: unknown key in pivot: ranges

Please help me to figure out how to correctly use solrj to do range
faceting inside pivot faceting.

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message