Tom Evans-2 wrote
> I don't think there is such a thing as an interval JSON facet.
> Whereabouts in the documentation are you seeing an "interval" as JSON
> facet type?
> 
> 
> You want a range facet surely?
> 
> One thing with range facets is that the gap is fixed size. You can
> actually do your example however:
> 
> json.facet={hieght_facet:{type:range, gap:20, start:160, end:190,
> hardend:True, field:height}}
> 
> If you do require arbitrary bucket sizes, you will need to do it by
> specifying query facets instead, I believe.
> 
> Cheers
> 
> Tom


nothing other than
https://cwiki.apache.org/confluence/display/solr/Faceting#Faceting-IntervalFaceting
for documentation on intervals...  i am ok with range queries as well but
intervals would fit better because of different sizes...

i have also checked the class FacetRequest after digging through the error
stack and found the lines below:

public Object parseFacetOrStat(String key, String type, Object args) throws
SyntaxError {
    // TODO: a place to register all these facet types?

    if ("field".equals(type) || "terms".equals(type)) {
      return parseFieldFacet(key, args);
    } else if ("query".equals(type)) {
      return parseQueryFacet(key, args);
    } else if ("range".equals(type)) {
      return parseRangeFacet(key, args);
    }

    AggValueSource stat = parseStat(key, type, args);
    if (stat == null) {
      throw err("Unknown facet or stat. key=" + key + " type=" + type + "
args=" + args);
    }

couldnt find any other class which is extending this method either... so
simply i will switch to ranges for now...

thanks a lot for your suggestions





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

Reply via email to