Comment mettre à jour plusieurs documents dans Solr avec JSON?

Comment mettre à jour plusieurs documents dans Solr 4.5.1 avec JSON? J'ai essayé ceci mais ça ne fonctionne pas:

POST /solr/mycore/update/json:

{
  "commit": {},
  "add": {
    "overwrite": true,
    "doc": [{
        "thumbnail": "/images/404.png",
        "url": "/404.html?1",
        "id": "demo:/404.html?1",
        "channel": "demo",
        "display_name": "One entry",
        "description": "One entry is not enough."
      }, {
        "thumbnail": "/images/404.png",
        "url": "/404.html?2",
        "id": "demo:/404.html?2",
        "channel": "demo",
        "display_name": "Another entry",
        "description": "Another entry is required."
      }
    ]
  }
}

OriginalL'auteur burnersk | 2013-11-27