Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-11927

Deleting child documents in XML request

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 7.2
    • None
    • None
    • None

    Description

      Currently there are some longstanding issues with deleting updating documents which contain child documents, there is a workaround by always adding the _childDocuments_ property e.g

      curl http://localhost:4003/solr/test/update?commitWithin=3000 -d '
      [

      {id : 1, _childDocuments_ : []}

      ]'

      Would make sure the child documents are deleted and this works ok.
      Except in the XML variant.

      <update>
          <add>
              <doc>
                  <field name="id">1</field>
                  <doc></doc>
              </doc>
          </add>
      </update>

      It will not work because it will actually try to index it as a child document complaining about missing required fields.

      Attachments

        Activity

          People

            Unassigned Unassigned
            cdekok Chris de Kok
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: