Last active
May 19, 2019 21:40
-
-
Save R4wm/6e6c20e1eb88aa50aaaca600504a22f6 to your computer and use it in GitHub Desktop.
Create Elasticsearch Index for King James Bible
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
#!/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