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

Jan Høydahl commented on SOLR-12362:
------------------------------------

Thanks for showing this Jira issue.

Is the existence of the pseudo field for children recorded in the schema?

What if "data driven mode" is in use and someone tries to index a document with 
{{"child" : "foo"}} after that key has been used to index sub docs. Then the 
auto-add-fields-to-schema logic would record "child" as a string field in the 
schema and the next attempt to use it as a sub-doc key would fail.

So I still think that perhaps we should be explicit and add a (pseudo) 
NestedFieldType to the schema, but that nested field type would either be 
implicitly defined or just a NOP class that does nothing, just a way to reserve 
the field name for nested use.??
{code:java}
<field name="child" type="nested" />
<fieldType name="nested" class="solr.NestedFieldType" indexed="false" 
stored="false" docValues="false" />{code}

> JSON loader 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
>            Assignee: David Smiley
>            Priority: Major
>             Fix For: 7.5
>
>          Time Spent: 6.5h
>  Remaining Estimate: 0h
>
> Once _childDocuments in SolrInputDocument is changed to a Map, JsonLoader 
> 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: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org

Reply via email to