Skip to content

Instantly share code, notes, and snippets.

@dan-mckay
Last active June 1, 2019 07:37
Show Gist options
  • Save dan-mckay/f1a4e565a2490d1144e52e5a17d27f22 to your computer and use it in GitHub Desktop.
Save dan-mckay/f1a4e565a2490d1144e52e5a17d27f22 to your computer and use it in GitHub Desktop.
elasticsearch commands

populate the database with dummy data from json file in cwd called test-data.json

curl -H "Content-Type: application/json" -XPOST "http://localhost:9200/product/default/_bulk?pretty" --data-binary "@test-data.json"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment