From 72e4a4cede23594083a2f9ededd7181984090ac6 Mon Sep 17 00:00:00 2001 From: Michael Kirk Date: Thu, 1 Feb 2024 02:38:28 -0800 Subject: [PATCH] feat: remove `schema.typeName` property from defaults Remove `schema.typeName` from the default config in order to support elasticsearch v8. Prior to version 6 it was recommended to be "_doc", in es7 it was optional (but if specified it was required to be "_doc"), in es8 it's not allowed at all. See: https://www.elastic.co/guide/en/elasticsearch/reference/7.17/removal-of-types.html BREAKING CHANGE: Pelias no longer supports elasticsearch v6 This change drops support for elasticsearch v6 in order to support v8. The current recommended version remains v7. Closes https://github.com/pelias/config/pull/142 --- config/defaults.json | 3 +-- test/expected-deep.json | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/config/defaults.json b/config/defaults.json index 567cfd6..9aae60a 100644 --- a/config/defaults.json +++ b/config/defaults.json @@ -70,8 +70,7 @@ } }, "schema": { - "indexName": "pelias", - "typeName": "_doc" + "indexName": "pelias" }, "logger": { "level": "debug", diff --git a/test/expected-deep.json b/test/expected-deep.json index 2676049..0d947d8 100644 --- a/test/expected-deep.json +++ b/test/expected-deep.json @@ -75,8 +75,7 @@ } }, "schema": { - "indexName": "pelias", - "typeName": "_doc" + "indexName": "pelias" }, "logger": { "level": "debug",