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

[jira] [Updated] (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 ]

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"}}]
{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"}}]
{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"}}]
> {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