Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-15044

Update JSON syntax: detect nested documents via schema

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 9.0
    • None

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

              dsmiley David Smiley
              dsmiley David Smiley
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m