Created
March 29, 2014 20:10
-
-
Save loonison123/9861967 to your computer and use it in GitHub Desktop.
Import SOLR data from csv file
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| cd YOURURL\apache-solr\exampledocs | |
| java -Dtype=text/csv -Durl=http://localhost:8983/solr/update -jar post.jar solr_data.txt | |
| REM Delete all data in SOLR database posted via web or CURL | |
| REM http://localhost:8983/solr/update?stream.body=%3Cdelete%3E%3Cquery%3E*:*%3C/query%3E%3C/delete%3E | |
| REM Finalize the deleting of SOLR database | |
| REM http://localhost:8983/solr/update?stream.body=%3Ccommit/%3E |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment