lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alexandre Rafalovitch <arafa...@gmail.com>
Subject Re: Faceting on both Parent and Child records in Block Join Query Parser
Date Tue, 04 Oct 2016 07:22:14 GMT
You need to switch the domain to the child records. It is somewhere in the
guide or Yonik's blog linked.

Regards,
   Alex

On 4 Oct 2016 1:55 PM, "Zheng Lin Edwin Yeo" <edwinyeozl@gmail.com> wrote:

> Hi,
>
> Is it possible to do nested faceting on both records in parent and child in
> a single query?
>
> For example, I want to facet both author_s and book_s. Author is indexed as
> a parent, whereas Book is indexed as a child.
>
> I tried the following JSON Facet query, which is to do a facet of all the
> list of author (in the parent), followed by a facet of all the list of
> books (in the child) that are written by the author.
>
> http://localhost:8983/solr/collection1/select?q=*:*
> &json.facet={
>    items:{
>       type:terms,
>       field:author_s,
>  facet:{
> by1:{
> type:terms,
> field:book_s
> }
> }
>  }
>    }
> }&fl=null&rows=0
>
>
> However, it only managed to return me the facet of the list of author. I
> could not get any results for the list of books. Is this possible to be
> done, or what could be wrong with my query?
>
>
> Regards,
> Edwin
>

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