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

es_mapping: update turning off dynamic mappings

they changed it in 6.x

https://www.elastic.co/guide/en/elasticsearch/reference/current/dynamic.html
https://github.com/elastic/elasticsearch/pull/25734
This commit is contained in:
queue 2019-06-30 20:03:39 -06:00
parent 90607d6993
commit a09b9a6511

View file

@ -78,14 +78,13 @@ settings:
# plus replicas don't really help either.
number_of_shards: 1
number_of_replicas : 0
mapper:
# disable elasticsearch's "helpful" autoschema
dynamic: false
# since we disabled the _all field, default query the
# name of the torrent.
query:
default_field: display_name
mappings:
# disable elasticsearch's "helpful" autoschema
dynamic: false
torrent:
# don't want everything concatenated
_all:
@ -144,4 +143,4 @@ mappings:
main_category_id:
type: keyword
sub_category_id:
type: keyword
type: keyword