java - How to insert multiple index at a time on a solr update using json -
i have refer different related web page getting how can post multiple index solr in single request. have gone through solr link http://wiki.apache.org/solr/updatejson#example link explain feature not clearly.
also have found create json this:
{ "add": {"doc": {"id" : "testdoc1", "title" : "test1"} }, "add": {"doc": {"id" : "testdoc2", "title" : "another test"} } }
can solve issue. in case last index updated/inserted index. project java project. please me on this.
the json module support using regular json array notation (from 3.2 , forward). if you're adding documents, there no need "add" key either:
[ { "id" : "mytestdocument", "title" : "this test" }, { "id" : "mytestdocument2", "title" : "this antoher test" } ]
Comments
Post a Comment