1
0
Fork 0
mirror of https://gitlab.com/SIGBUS/nyaa.git synced 2024-12-23 00:39:59 +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. # plus replicas don't really help either.
number_of_shards: 1 number_of_shards: 1
number_of_replicas : 0 number_of_replicas : 0
mapper:
# disable elasticsearch's "helpful" autoschema
dynamic: false
# since we disabled the _all field, default query the # since we disabled the _all field, default query the
# name of the torrent. # name of the torrent.
query: query:
default_field: display_name default_field: display_name
mappings: mappings:
# disable elasticsearch's "helpful" autoschema
dynamic: false
torrent: torrent:
# don't want everything concatenated # don't want everything concatenated
_all: _all: