mirror of
https://gitlab.com/SIGBUS/nyaa.git
synced 2024-12-22 19:49: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:
parent
90607d6993
commit
a09b9a6511
|
@ -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:
|
||||||
|
@ -144,4 +143,4 @@ mappings:
|
||||||
main_category_id:
|
main_category_id:
|
||||||
type: keyword
|
type: keyword
|
||||||
sub_category_id:
|
sub_category_id:
|
||||||
type: keyword
|
type: keyword
|
||||||
|
|
Loading…
Reference in a new issue