Skip to content

Instantly share code, notes, and snippets.

@bindiego
Created September 13, 2014 10:24
Show Gist options
  • Save bindiego/73ab56dec71875742855 to your computer and use it in GitHub Desktop.
Save bindiego/73ab56dec71875742855 to your computer and use it in GitHub Desktop.
Push to ElasticSearch
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