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?


Reply via email to