From 5c83de2a7f3102eaff01abd4542a9b178c620ba2 Mon Sep 17 00:00:00 2001 From: Juras Norkus Date: Thu, 17 Mar 2022 10:16:12 +0200 Subject: [PATCH] chore: es8 support - remove deprecated include_type_name parameter --- integration/dynamic_templates.js | 9 +++------ integration/run.js | 1 - scripts/create_index.js | 3 +-- 3 files changed, 4 insertions(+), 9 deletions(-) diff --git a/integration/dynamic_templates.js b/integration/dynamic_templates.js index 4ece07b7..daf5b092 100644 --- a/integration/dynamic_templates.js +++ b/integration/dynamic_templates.js @@ -49,8 +49,7 @@ function nameAssertion( analyzer, common ){ suite.assert( done => { suite.client.indices.getMapping({ - index: suite.props.index, - include_type_name: false + index: suite.props.index }, (err, res) => { const properties = res[suite.props.index].mappings.properties; @@ -88,8 +87,7 @@ function phraseAssertion( analyzer, common ){ suite.assert( done => { suite.client.indices.getMapping({ - index: suite.props.index, - include_type_name: false + index: suite.props.index }, ( err, res ) => { const properties = res[suite.props.index].mappings.properties; @@ -126,8 +124,7 @@ function addendumAssertion( namespace, value, common ){ // inherited from the dynamic_template suite.assert( done => { suite.client.indices.getMapping({ - index: suite.props.index, - include_type_name: false, + index: suite.props.index }, ( err, res ) => { const properties = res[suite.props.index].mappings.properties; diff --git a/integration/run.js b/integration/run.js index 42f835ae..f6b76838 100644 --- a/integration/run.js +++ b/integration/run.js @@ -13,7 +13,6 @@ const common = { create: { schema: schema, create: { - include_type_name: false } }, summaryMap: (res) => { diff --git a/scripts/create_index.js b/scripts/create_index.js index 61e76de3..0bb94ad0 100644 --- a/scripts/create_index.js +++ b/scripts/create_index.js @@ -29,8 +29,7 @@ try { const indexName = config.schema.indexName; const req = { index: indexName, - body: schema, - include_type_name: false + body: schema }; client.indices.create(req, (err, res) => {