David Smiley created SOLR-15044: ----------------------------------- Summary: 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 Security Level: Public (Default Security Level. Issues are Public) Reporter: David Smiley
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...@lucene.apache.org For additional commands, e-mail: issues-h...@lucene.apache.org