You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Erick Erickson (JIRA)" <ji...@apache.org> on 2018/01/15 21:39:00 UTC

[jira] [Resolved] (SOLR-11856) Nested documents are dropped when partial update is used

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

Erick Erickson resolved SOLR-11856.
-----------------------------------
    Resolution: Duplicate

See SOLR-5211, SOLR-10144, SOLR-6096

> Nested documents are dropped when partial update is used
> --------------------------------------------------------
>
>                 Key: SOLR-11856
>                 URL: https://issues.apache.org/jira/browse/SOLR-11856
>             Project: Solr
>          Issue Type: Bug
>      Security Level: Public(Default Security Level. Issues are Public) 
>    Affects Versions: 6.6.2
>            Reporter: Alexander Pykhtin
>            Priority: Major
>
> Attempting to do partial updates to a parent document results in losing a random number of children (> 50%).
>  
> {
> "content_type": "parentDocument",
> "id": "parent:123",
> "title": "Parent document",
> "_childDocuments_": [
> {
> "content_type": "childDocument",
> "id": "child:123",
> "actionDate": "2016-06-24T07:00:00Z",
> },
> {
> "content_type": "childDocument",
> "id": "child:456",
> "actionDate": "2016-06-25T07:00:00Z",
> }
> ]
> }
>  
> Calling /update?commit=true&softcommit=true with
> {quote}[\\\{"id":"parent:123","title":{"set":"blah"}}|file://%7B%22id%22:%22parent:123%22%2C%22title%22:%7B%22set%22:%22blah%22%7D%7D/]
> {quote}
> correctly updates title field in the parent and temporarily retains children. However, subsequent operation like
> /update?optimize=true
> will cause SOME of the children to drop, i.e. become orphaned. It can be one child, or all, or none - I was not able to figure out the system yet.
>  
> EXPECTED: partial update operations should retain all the children, unless explicitly specified.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org