nyaa/create_es.sh

7 lines
312 B
Bash
Raw Permalink Normal View History

#!/usr/bin/env bash
set -e
2018-05-28 11:54:54 +00:00
# create indices named "nyaa" and "sukebei", these are hardcoded
curl -v -XPUT 'localhost:9200/nyaa?pretty' -H"Content-Type: application/yaml" --data-binary @es_mapping.yml
curl -v -XPUT 'localhost:9200/sukebei?pretty' -H"Content-Type: application/yaml" --data-binary @es_mapping.yml