From e4c34ffcf7942f90e24d0676dcbaccebe6ef0133 Mon Sep 17 00:00:00 2001 From: Julian Simioni Date: Tue, 7 Jan 2020 11:14:12 -0800 Subject: [PATCH] feat(elasticsearch): Default to `_doc` as type name for ES7 support Now that we have dropped support for ES5, we can change the default type name from `doc` to `_doc`. Either setting is compatible with ES6, but only `_doc` is compatible with ES7. Connects https://github.com/pelias/pelias/issues/831 --- config/defaults.json | 2 +- test/expected-deep.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/config/defaults.json b/config/defaults.json index e27d938..8a55bd2 100644 --- a/config/defaults.json +++ b/config/defaults.json @@ -70,7 +70,7 @@ }, "schema": { "indexName": "pelias", - "typeName": "doc" + "typeName": "_doc" }, "logger": { "level": "debug", diff --git a/test/expected-deep.json b/test/expected-deep.json index 6282bad..b4040f8 100644 --- a/test/expected-deep.json +++ b/test/expected-deep.json @@ -75,7 +75,7 @@ }, "schema": { "indexName": "pelias", - "typeName": "doc" + "typeName": "_doc" }, "logger": { "level": "debug",