mirror of
https://gitlab.com/SIGBUS/nyaa.git
synced 2024-12-22 19:49:59 +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:
parent
1ba82f3fa8
commit
b797f45f28
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue