[ https://issues.apache.org/jira/browse/SOLR-15044?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
David Smiley reassigned SOLR-15044: ----------------------------------- Fix Version/s: main (9.0) Assignee: David Smiley Labels: NestedDocuments (was: ) Priority: Major (was: Minor) > 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 > Assignee: David Smiley > Priority: Major > Labels: NestedDocuments > Fix For: main (9.0) > > > 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