Hi

i want to ingest below documents, where there is a mix of nested and
un-nested documents:
<add>
  <doc>
      <field name="id">5</field>
      <field name="_root_">5</field>
      <field name="title">5Solr adds block join support</field>
      <field name="content_type">sparentDocument</field>
  </doc>
 <doc>
      <field name="id">1</field>
      <field name="_root_">1</field>
      <field name="title">Solr adds block join support</field>
      <field name="content_type">parentDocument</field>
      <doc>
          <field name="id">2</field>
          <field name="_root_">1</field>
          <field name="comments">SolrCloud supports it too!</field>
          <field name="content_type">childDocument</field>
      </doc>
  </doc>
  <doc>
      <field name="id">3</field>
      <field name="_root_">3</field>
      <field name="title">New Lucene and Solr release is out</field>
      <field name="content_type">parentDocument</field>
      <doc>
        <field name="id">4</field>
        <field name="_root_">4</field>
        <field name="comments">Lots of new features</field>
        <field name="content_type">childDocument</field>
      </doc>
  </doc>
</add>


Output of block join query after ingesting above docs:
[image: image.png]

So doc id 5 is getting linked to doc id 1. Is this expected behavior, I
believ Id-5 should be a different document tree.

Shall I Ingest them in some order ?

Reply via email to