[ 
https://issues.apache.org/jira/browse/SOLR-15064?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

David Smiley reassigned SOLR-15064:
-----------------------------------

       Assignee: David Smiley
    Description: 
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.

 

  was:
Doing an atomic/partial update to a child doc requires that the update be 
routed to the proper shard despite the doc having an ID different than the root 
doc that it's associated with.  Our solution for that was to use the 
{{_route_}} param to supply the root document ID.  What we overlooked was the 
fact that implicit routers rely on that parameter to identify the shard by 
name.  Consequently, these two features are incompatible.

I think we must insist that such updates include the {{_root_}} field in the 
document, and take care to exclude it when applying in-place updates (as its 
presence would disrupt the ability to do an in-place update).  Furthermore, 
ensure that CloudSolrClient and Solr itself can route updates appropriately 
based on the {{_root_}} field.

       Priority: Minor  (was: Major)
        Summary: Atomic/partial updates to nested docs should not assume 
_route_ param is the root ID  (was: Atomic/partial updates to nested docs is 
incompatible with implicit doc router)

> 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]

Reply via email to