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

David Smiley updated SOLR-6596:
-------------------------------
    Attachment: SOLR-6596-tests.patch
        Status: Open  (was: Open)

I applied the patch and updated it to master branch, plus made some small 
changes to show that it can be made to work thanks to SOLR-12638.  The \_root\_ 
field needs to be stored (or docValues) – unfortunately.  And child documents 
need to be added as named child documents instead of the classic "anonymous" 
style.  An atomic update doc needs to even add the child document in this way.  
The test shows this now.   The tests for JavaBin mode here works, although the 
XML mode does not due to SOLR-12677.  I'm going to close as fixed.

> Atomic update and adding child doc not working together
> -------------------------------------------------------
>
>                 Key: SOLR-6596
>                 URL: https://issues.apache.org/jira/browse/SOLR-6596
>             Project: Solr
>          Issue Type: Bug
>    Affects Versions: 4.10
>            Reporter: Ishan Chattopadhyaya
>            Priority: Minor
>         Attachments: SOLR-6596-tests.patch, SOLR-6596-tests.patch
>
>
> Was able to reproduce the issue reported here:
> http://qnalist.com/questions/5175783/solrj-bug-related-to-solrj-4-10-for-having-both-incremental-partial-update-and-child-document-on-the-same-solr-document
> The following two failing tests:
> 1. 
> a) Add a document 'parent'. Commit.
> b) Make atomic update to 'parent' doc
> c) Add a child doc to 'parent'. Commit.
> Expected 2 documents, Actual 1 document
> 2. 
> a) Add a document with id 'parent'
> b) Add another document with id 'parent' with a child 'child'. Commit
> Expected 2 documents (the overwritten parent document and the child), Actual 
> 3 documents (two documents with the id 'parent').



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org
For additional commands, e-mail: issues-h...@lucene.apache.org

Reply via email to