[
https://issues.apache.org/jira/browse/SOLR-11927?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18132117#comment-18132117
]
Nick Shanin commented on SOLR-11927:
------------------------------------
>From code reading against apache/main b73f03976fa, XML has no empty child-list
>syntax, and JSON already expresses an empty child list with `_childDocuments_:
>[]` (solr/core/src/java/org/apache/solr/handler/loader/JsonLoader.java:73).
>Can this close as won't fix?
🤖 AI-generated 🤖
> Deleting child documents in XML request
> ---------------------------------------
>
> Key: SOLR-11927
> URL: https://issues.apache.org/jira/browse/SOLR-11927
> Project: Solr
> Issue Type: Bug
> Affects Versions: 7.2
> Reporter: Chris de Kok
> Priority: Major
>
> 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.
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]