If you want to import part or all of the collection from the json format, well, there is an alternative.
I wrote a java tool: https://github.com/freedev/solr-import-export-json
This is a Java application that imports and exports a collection of Solr using SolrJ . Each document must be a json object, and in the imported file you must have a list of lines, while each line is a json object.
{ "id": 1, "date": "20160101T00:00:00", "text": "some text" } { "id": 2, "date": "20160102T00:00:00", "text": "some text" } { "id": 3, "date": "20160103T00:00:00", "text": "some text" }
I have not tried nested documents, and json document keys must be exactly Solr field names.
freedev
source share