1
0
Fork 0
mirror of https://gitlab.com/SIGBUS/nyaa.git synced 2024-12-22 19:10:00 +00:00

es_mapping.yml: fix deprecated mapping type

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.
This commit is contained in:
queue 2019-06-30 20:20:24 -06:00
parent 1ba82f3fa8
commit b797f45f28
2 changed files with 56 additions and 56 deletions

View file

@ -1,4 +1,5 @@
#!/usr/bin/env bash #!/usr/bin/env bash
set -e
# create indices named "nyaa" and "sukebei", these are hardcoded # 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/nyaa?pretty' -H"Content-Type: application/yaml" --data-binary @es_mapping.yml

View file

@ -83,7 +83,6 @@ settings:
mappings: mappings:
# disable elasticsearch's "helpful" autoschema # disable elasticsearch's "helpful" autoschema
dynamic: false dynamic: false
torrent:
properties: properties:
id: id:
type: long type: long