[ 
https://issues.apache.org/jira/browse/SOLR-12685?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16588388#comment-16588388
 ] 

mosh commented on SOLR-12685:
-----------------------------

I have uploaded a very rough patch, which should only be viewed as a POC, to 
get my hands dirty before opening sub tasks.
The main changes are in RealTimeGetComponent, specifically in lines 655 to 669.
I added a new test AtomicUpdateNestedTest#testAddChild, which does not yet pass.
After using the ChildDocTransformer in RealTimeGetComponent, I have yet to 
figure out a clean way to get the child document's _nest_path_,
which is needed for the atomic update to be merged in the right path inside the 
block(AtomicUpdateDocumentMerger#doAdd).

> RTG should return the whole block if schema is nested
> -----------------------------------------------------
>
>                 Key: SOLR-12685
>                 URL: https://issues.apache.org/jira/browse/SOLR-12685
>             Project: Solr
>          Issue Type: Sub-task
>      Security Level: Public(Default Security Level. Issues are Public) 
>            Reporter: mosh
>            Priority: Major
>         Attachments: SOLR-12638-no-commit.patch
>
>
> Currently Solr's RealTimeGet component return the document if provided a 
> docId when consulting the index. For AtomicUpdates for child documents, RTG 
> should return the whole block when dealing with a nested schema.



--
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

Reply via email to