From e8b5a873e053261db904d89c4e101727b8c4396f Mon Sep 17 00:00:00 2001 From: Brian Crowell Date: Mon, 4 Jun 2018 11:40:05 -0500 Subject: [PATCH] elasticsearch: Fix the _source parameter on mget --- types/elasticsearch/elasticsearch-tests.ts | 3 ++- types/elasticsearch/index.d.ts | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/types/elasticsearch/elasticsearch-tests.ts b/types/elasticsearch/elasticsearch-tests.ts index 3236a181a1..35b4e39798 100644 --- a/types/elasticsearch/elasticsearch-tests.ts +++ b/types/elasticsearch/elasticsearch-tests.ts @@ -206,7 +206,8 @@ client.mget({ index: 'myindex', type: 'mytype', body: { - ids: [1, 2, 3] + ids: [1, 2, 3], + _source: ['test'] } }, (error, response) => { // ... diff --git a/types/elasticsearch/index.d.ts b/types/elasticsearch/index.d.ts index 7973b598ab..2cfd14f689 100644 --- a/types/elasticsearch/index.d.ts +++ b/types/elasticsearch/index.d.ts @@ -465,7 +465,7 @@ export interface MGetParams extends GenericParams { preference?: string; realtime?: boolean; refresh?: boolean; - source?: NameList; + _source?: NameList; _sourceExclude?: NameList; _sourceInclude?: NameList; index?: string;