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
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

View File

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