Skip to content

Instantly share code, notes, and snippets.

@seiji
Created December 17, 2019 03:42
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 seiji/50bcecd655ab1668c335d788adcfe0c9 to your computer and use it in GitHub Desktop.
Save seiji/50bcecd655ab1668c335d788adcfe0c9 to your computer and use it in GitHub Desktop.
Add index for elasticsearch bulk api
jq <test.json -c '. | {"index": {}}, .' | curl -XPOST -H "Content-Type: application/json" localhost:9200/myindex/_bulk --data-binary @-
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment