Hello,
Check [child]
https://lucene.apache.org/solr/guide/7_4/transforming-result-documents.html#child-childdoctransformerfactory
or [subquery].
Although, it's worth to put reference to it somewhere in blockjoin
qparsers.
Documentation patches are welcome.


On Sun, Jul 22, 2018 at 10:25 AM TK Solr <tksol...@sonic.net> wrote:

>
> https://lucene.apache.org/solr/guide/7_4/other-parsers.html#block-join-parent-query-parser
>
> talks about {!parent which=<query that matches all parent docs>} <query on
> child
> docs>, which returns parent docs only, and
> {!child of=<query that matches all parent docs>} <query on parent docs>,
> which
> returns child docs only.
>
> Is there a way to retrieve the matched documents in the original, nested
> form?
> Using the sample document, is there way to get:
>
> <doc>
>    <field name="id">1</field>
>    <field name="title">Solr has block join support</field>
>    <field name="content_type">parentDocument</field>
>    <doc>
>        <field name="id">2</field>
>        <field name="comments">SolrCloud supports it too!</field>
>    </doc>
> </doc>
>
> rather than just the parent or the child docs?
>
>
>

-- 
Sincerely yours
Mikhail Khludnev

Reply via email to