elasticsearch: Fix the _source parameter on mget

This commit is contained in:
Brian Crowell
2018-06-04 11:40:05 -05:00
parent 3f85ee6db4
commit e8b5a873e0
2 changed files with 3 additions and 2 deletions
+2 -1
View File
@@ -206,7 +206,8 @@ client.mget({
index: 'myindex',
type: 'mytype',
body: {
ids: [1, 2, 3]
ids: [1, 2, 3],
_source: ['test']
}
}, (error, response) => {
// ...
+1 -1
View File
@@ -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;