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;