[ 
https://issues.apache.org/jira/browse/SOLR-15044?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17346561#comment-17346561
 ] 
David Smiley commented on SOLR-15044:
-------------------------------------

BTW relevant code is here: 
[https://github.com/apache/solr/blob/bf7db012ec31e6ef553b88abd2c2f75dc0298615/solr/core/src/java/org/apache/solr/handler/loader/JsonLoader.java#L624]
 "isChildDoc" method

> Update JSON syntax: detect nested documents via schema
> ------------------------------------------------------
>
>                 Key: SOLR-15044
>                 URL: https://issues.apache.org/jira/browse/SOLR-15044
>             Project: Solr
>          Issue Type: Improvement
>            Reporter: David Smiley
>            Priority: Minor
>
> When sending JSON formatted documents to Solr, particularly to 
> /update/json/commands instead of /update/json/docs (those are API v2 paths), 
> it tries to differentiate between wether a nested structure is either a 
> nested document or an atomic update -- it's rather ambiguous.  Presently the 
> logic is simply checking for the presence of an "id" but it may not be there 
> (it is auto-computed when absent later).  It ought to simply look in the 
> schema to see if the field exists or not.  If it doesn't, then it can't be an 
> atomic update, thus treat it as a nested document.
> This was raised [on this comment in another JIRA 
> issue|https://issues.apache.org/jira/browse/SOLR-12362?focusedCommentId=16526338&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-16526338].



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

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

Reply via email to