From a09b9a6511a592328d1375b998e90778e093c8c4 Mon Sep 17 00:00:00 2001 From: queue Date: Sun, 30 Jun 2019 20:03:39 -0600 Subject: [PATCH] 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 --- es_mapping.yml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/es_mapping.yml b/es_mapping.yml index 14983d5..532498a 100644 --- a/es_mapping.yml +++ b/es_mapping.yml @@ -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 \ No newline at end of file + type: keyword