[
https://issues.apache.org/jira/browse/SOLR-12362?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16502712#comment-16502712
]
mosh commented on SOLR-12362:
-----------------------------
The unique key solution seems like a better way to determine if the JSON is
indeed a child document.
However, I did not quite grasp your idea for custom JSON:
{quote}For custom JSON, I think we can explicitly call out these child
documents by having the path show up in the split param. It seems this is
already supported though we need to retain the semantic key
{quote}
Do you refer to _childDocuments_ as the *semantic key*?
If so, the conditional: {code}if
(fieldName.equals(JsonLoader.CHILD_DOC_KEY)){code} could be changed to:
{code}if (anonChildDocFlag && fieldName.equals(JsonLoader.CHILD_DOC_KEY)) {code}
> JSON and XML loaders should save the relationship of children
> -------------------------------------------------------------
>
> Key: SOLR-12362
> URL: https://issues.apache.org/jira/browse/SOLR-12362
> Project: Solr
> Issue Type: Sub-task
> Security Level: Public(Default Security Level. Issues are Public)
> Reporter: mosh
> Priority: Major
> Time Spent: 0.5h
> Remaining Estimate: 0h
>
> Once _childDocuments in SolrInputDocument is changed to a Map, the JsonLoader
> and XmlLoader should add the child document to the map while saving its key
> name, to maintain the child's relationship to its parent.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]