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 <guoyang...@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!

Reply via email to