mirror of
https://github.com/simon987/nyaa.git
synced 2025-04-18 01:46:42 +00:00
https://www.elastic.co/guide/en/elasticsearch/reference/6.7/removal-of-types.html#_schedule_for_removal_of_mapping_types it gives a really unhelpful error otherwise, oof.
7 lines
312 B
Bash
Executable File
7 lines
312 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -e
|
|
|
|
# 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
|