Created
September 13, 2014 10:24
-
-
Save bindiego/73ab56dec71875742855 to your computer and use it in GitHub Desktop.
Push to ElasticSearch
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
for f in ${BATCH_DIR}/batch-*.json | |
do | |
echo "aboutto index $f" | |
curl --silent --show-error --request POST \ | |
--data-binary @$f localhost:9200/_bulk > /dev/null 2>&1 | |
echo | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment