Created
December 17, 2019 03:42
-
-
Save seiji/50bcecd655ab1668c335d788adcfe0c9 to your computer and use it in GitHub Desktop.
Add index for elasticsearch bulk api
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
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