Hello,

I am trying to run JSON facets with on interval query as follows:

  
"json.facet":{"height_facet":{"interval":{"field":"height","set":["[160,180]","[180,190]"]}}}

And related field is <field name="height" type="tint" indexed="true"
stored="true" />

But I keep seeing errors like:

    o.a.s.h.RequestHandlerBase org.apache.solr.common.SolrException: Unknown
facet or stat. key=height_facet type=interval args={field=height,
set=[[160,180], [180,190]]} , path=/facet


I have tried to find example for the json facets with intervals but couldnt
find anything... almost everywhere having examples for range queries rather
than interval...

the thing i am trying to achive is the same/similar response with:

   
/select?facet=on&indent=on&q=*:*&wt=json&facet.interval=height&f.height.facet.interval.set=[0,155]&f.height.facet.interval.set=(155,165]
 

in case i directly query solr with the above query, i am able to see the
facets. 

solr version i use is 6.1.0

is it something missing or incorrect in the syntax that i use for json
facets? anyone had similar issues with interval facets with json?






-----
Zeki ama calismiyor... Calissa yapar...
--
View this message in context: 
http://lucene.472066.n3.nabble.com/Interval-Facets-with-JSON-tp4319111.html
Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to