Last active
February 6, 2017 16:19
-
-
Save mamonu/e8ef66712deb3570314e8756f420144e to your computer and use it in GitHub Desktop.
delete all and re-index
This file contains 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
http://localhost:8080/solr/update?stream.body=<delete><query>*:*</query></delete> | |
http://localhost:8080/solr/update?stream.body=<commit/> | |
#how to add linenumbers in bash | |
awk '{ print FNR "," $0 }' train_set.csv > clean.csv | |
#edit clean.csv and change 1 from header to line...did it by hand ...could automate this :) | |
http://localhost:8080/solr/update/csv?commit=true&stream.file=/home/bigdata/data/clean.csv | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment