[
https://issues.apache.org/jira/browse/SOLR-15064?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17260749#comment-17260749
]
Thomas Wöckinger edited comment on SOLR-15064 at 1/7/21, 7:32 PM:
------------------------------------------------------------------
That's clear, but the documentation does not show how to update a child
document using the root document.
The main point is, which child operation should be used to update an existing
child, but not adding it a second time?
I have not tested add-distinct yet, but if that doesn't work the only way is to
use a single request which contains only the updates of the child document (and
the '_root_' field) plus the id of the root document as '_route_' parameter.
was (Author: thomas.woeckinger):
That's clear, but the documentation does not show how to update a child
document using the root document.
The main point is, which child operation should be used to update an existing
child, but not adding it a second time?
I have not tested add-distinct yet, but if that doesn't work the only way is to
use a single request which contains only the updates of the child document (and
the _root_ field) plus the id of the root document as _route_ parameter.
> Atomic/partial updates to nested docs should not assume _route_ param is the
> root ID
> ------------------------------------------------------------------------------------
>
> Key: SOLR-15064
> URL: https://issues.apache.org/jira/browse/SOLR-15064
> Project: Solr
> Issue Type: Improvement
> Security Level: Public(Default Security Level. Issues are Public)
> Reporter: David Smiley
> Assignee: David Smiley
> Priority: Minor
> Labels: NestedDocuments
>
> In SOLR-14923, doing an atomic/partial update to a child doc requires
> indicating what the root doc ID is. Formerly Solr tried to figure this out
> automatically, but that had costly implications. SOLR-14923 adds a
> temporary hack that assumes that the \_route_ paramter *is* the root ID, if
> the \_root_ field is not on the doc. But that's not necessarily accurate, so
> it should be removed.
>
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]