Skip to content

Instantly share code, notes, and snippets.

@mamonu
Last active February 6, 2017 16:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mamonu/e8ef66712deb3570314e8756f420144e to your computer and use it in GitHub Desktop.
Save mamonu/e8ef66712deb3570314e8756f420144e to your computer and use it in GitHub Desktop.
delete all and re-index
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