lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Yangrui Guo <guoyang...@gmail.com>
Subject Child doc facet not getting terms, only counts
Date Tue, 26 Apr 2016 21:08:43 GMT
 When I use subfaceting with Json API, the facet results only gave me
counts, no terms. My query is like this:

{
    apparels : {
        type: terms,
        field: brand,
        facet:{
          values:{
              type: query,
              q:\"brand:Chanel\",
              facet: {
                    type: terms,
                    field: madein
              }
              domain: { blockChildren : \"content_type:p\" }
          }
        },
        domain: { blockChildren : \"content_type:p\" }
    }
    }
}

And this is the results that I got:

facets={
    count=57477,
    apparels={
        buckets=
        {
            val=Chanel,
            count=6,
            madein={
                count=6

                buckets={}
            }
        }
    }
}

The second buckets got zero results but the count was correct. What was I
missing? Thanks so much!

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