Skip to content

Instantly share code, notes, and snippets.

@R4wm
Last active May 19, 2019 21:40
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 R4wm/6e6c20e1eb88aa50aaaca600504a22f6 to your computer and use it in GitHub Desktop.
Save R4wm/6e6c20e1eb88aa50aaaca600504a22f6 to your computer and use it in GitHub Desktop.
Create Elasticsearch Index for King James Bible
#!/bin/bash
curl https://raw.githubusercontent.com/R4wm/elastic_kjv/master/data/esBulk.json -o /tmp/kjv_es_bulk_payload.json
curl -XPOST -H"Content-Type: application/json" http://localhost:9200/bible/_bulk --data-binary @/tmp/kjv_es_bulk_payload.json
curl http://localhost:9200/_cat/indices?v
curl -XPUT http://localhost:9200/bible/_settings -H"content-type: application/json" -d '{"number_of_replicas": 0}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment