lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Yonik Seeley <ysee...@gmail.com>
Subject Re: Child doc facet not getting terms, only counts
Date Tue, 26 Apr 2016 21:55:26 GMT
How are the documents indexed?  Can you show an example document (with
nested documents)?
-Yonik


On Tue, Apr 26, 2016 at 5:08 PM, Yangrui Guo <guoyangrui@gmail.com> wrote:
>  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
View raw message