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

The JsonLoader should accept a single doc without wrapping in an array

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: update
    • Labels:
      None

      Description

      This is the multi document input command

      curl http://localhost:8983/solr/update/json -H 'Content-type:application/json' -d '
      [
       {"id" : "TestDoc1", "title" : "test1"},
      ]'
      

      The following also should be a valid update command for a single doc

      curl http://localhost:8983/solr/update/json -H 'Content-type:application/json' -d '
       {"id" : "TestDoc1", "title" : "test1"},
      '
      

        Attachments

        There are no Sub-Tasks for this issue.

          Activity

            People

            • Assignee:
              noble.paul Noble Paul
              Reporter:
              noble.paul Noble Paul
            • Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: