Alexander Pykhtin created SOLR-11856:
----------------------------------------
Summary: 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
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"}}]
{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: [email protected]
For additional commands, e-mail: [email protected]