[ https://issues.apache.org/jira/browse/SOLR-11856?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Alexander Pykhtin updated SOLR-11856: ------------------------------------- Description: 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. was: Attempting to do partial updates to a parent document results in losing a random number of children (> 50%). {quote}{ "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", } ] } {quote} 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. > 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-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org