So aktualisieren Sie mehrere Dokumente in Solr mit JSON?

So aktualisieren Sie mehrere Dokumente in Solr 4.5.1 mit JSON? Ich habe versucht, aber es funktioniert nicht:

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."
      }
    ]
  }
}
InformationsquelleAutor burnersk | 2013-11-27
Schreibe einen Kommentar