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

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • None
    • update
    • 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

        1. SOLR-6294-6304.patch
          33 kB
          Noble Paul

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: