Details
-
Improvement
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
Description
example
bin/solr export -url http://localhost:8983/solr/gettingstarted
This will export all the docs in a collection called gettingstarted into a file called gettingstarted.json
additional options are
- format : jsonl (default) or javabin
- out : export file name
- query : a custom query , default is *:*
- fields: a comma separated list of fields to be exported
- limit : no:of docs. default is 100 , send -1 to import all the docs
Importing using curl
importing json file
curl -X POST -d @gettingstarted.json http://localhost:18983/solr/gettingstarted/update/json/docs?commit=true
importing javabin format file
curl -X POST --header "Content-Type: application/javabin" --data-binary @gettingstarted.javabin http://localhost:7574/solr/gettingstarted/update?commit=true
Attachments
Issue Links
- is related to
-
SOLR-13689 add a command line option bin/solr import to import jsonl/javabin file
- Open
-
SOLR-13688 Make the bin/solr export command to run one thread per shard
- Resolved
- links to