- About
- Browser Builds
- Quick Start
- API Conventions
- Configuration
- SSL and Authentication
- Extending
- Extensions
- setup logging
- Contributing
- 7.6 API
bulkclearScrollcountcreatedeletedeleteByQuerydeleteByQueryRethrottledeleteScriptexistsexistsSourceexplainfieldCapsgetgetScriptgetSourceindexinfomgetmsearchmsearchTemplatemtermvectorspingputScriptrankEvalreindexreindexRethrottlerenderSearchTemplatescriptsPainlessExecutescrollsearchsearchShardssearchTemplatetermvectorsupdateupdateByQueryupdateByQueryRethrottlecat.aliasescat.allocationcat.countcat.fielddatacat.healthcat.helpcat.indicescat.mastercat.nodeattrscat.nodescat.pendingTaskscat.pluginscat.recoverycat.repositoriescat.segmentscat.shardscat.snapshotscat.taskscat.templatescat.threadPoolcluster.allocationExplaincluster.getSettingscluster.healthcluster.pendingTaskscluster.putSettingscluster.remoteInfocluster.reroutecluster.statecluster.statsindices.analyzeindices.clearCacheindices.cloneindices.closeindices.createindices.deleteindices.deleteAliasindices.deleteTemplateindices.existsindices.existsAliasindices.existsTemplateindices.existsTypeindices.flushindices.flushSyncedindices.forcemergeindices.getindices.getAliasindices.getFieldMappingindices.getMappingindices.getSettingsindices.getTemplateindices.getUpgradeindices.openindices.putAliasindices.putMappingindices.putSettingsindices.putTemplateindices.recoveryindices.refreshindices.rolloverindices.segmentsindices.shardStoresindices.shrinkindices.splitindices.statsindices.updateAliasesindices.upgradeindices.validateQueryingest.deletePipelineingest.getPipelineingest.processorGrokingest.putPipelineingest.simulatenodes.hotThreadsnodes.infonodes.reloadSecureSettingsnodes.statsnodes.usagesnapshot.createsnapshot.createRepositorysnapshot.deletesnapshot.deleteRepositorysnapshot.getsnapshot.getRepositorysnapshot.restoresnapshot.statussnapshot.verifyRepositorytasks.canceltasks.gettasks.list
- 7.5 API
bulkclearScrollcountcreatedeletedeleteByQuerydeleteByQueryRethrottledeleteScriptexistsexistsSourceexplainfieldCapsgetgetScriptgetSourceindexinfomgetmsearchmsearchTemplatemtermvectorspingputScriptrankEvalreindexreindexRethrottlerenderSearchTemplatescriptsPainlessExecutescrollsearchsearchShardssearchTemplatetermvectorsupdateupdateByQueryupdateByQueryRethrottlecat.aliasescat.allocationcat.countcat.fielddatacat.healthcat.helpcat.indicescat.mastercat.nodeattrscat.nodescat.pendingTaskscat.pluginscat.recoverycat.repositoriescat.segmentscat.shardscat.snapshotscat.taskscat.templatescat.threadPoolcluster.allocationExplaincluster.getSettingscluster.healthcluster.pendingTaskscluster.putSettingscluster.remoteInfocluster.reroutecluster.statecluster.statsindices.analyzeindices.clearCacheindices.cloneindices.closeindices.createindices.deleteindices.deleteAliasindices.deleteTemplateindices.existsindices.existsAliasindices.existsTemplateindices.existsTypeindices.flushindices.flushSyncedindices.forcemergeindices.getindices.getAliasindices.getFieldMappingindices.getMappingindices.getSettingsindices.getTemplateindices.getUpgradeindices.openindices.putAliasindices.putMappingindices.putSettingsindices.putTemplateindices.recoveryindices.refreshindices.rolloverindices.segmentsindices.shardStoresindices.shrinkindices.splitindices.statsindices.updateAliasesindices.upgradeindices.validateQueryingest.deletePipelineingest.getPipelineingest.processorGrokingest.putPipelineingest.simulatenodes.hotThreadsnodes.infonodes.reloadSecureSettingsnodes.statsnodes.usagesnapshot.createsnapshot.createRepositorysnapshot.deletesnapshot.deleteRepositorysnapshot.getsnapshot.getRepositorysnapshot.restoresnapshot.statussnapshot.verifyRepositorytasks.canceltasks.gettasks.list
- 7.4 API
bulkclearScrollcountcreatedeletedeleteByQuerydeleteByQueryRethrottledeleteScriptexistsexistsSourceexplainfieldCapsgetgetScriptgetSourceindexinfomgetmsearchmsearchTemplatemtermvectorspingputScriptrankEvalreindexreindexRethrottlerenderSearchTemplatescriptsPainlessExecutescrollsearchsearchShardssearchTemplatetermvectorsupdateupdateByQueryupdateByQueryRethrottlecat.aliasescat.allocationcat.countcat.fielddatacat.healthcat.helpcat.indicescat.mastercat.nodeattrscat.nodescat.pendingTaskscat.pluginscat.recoverycat.repositoriescat.segmentscat.shardscat.snapshotscat.taskscat.templatescat.threadPoolcluster.allocationExplaincluster.getSettingscluster.healthcluster.pendingTaskscluster.putSettingscluster.remoteInfocluster.reroutecluster.statecluster.statsindices.analyzeindices.clearCacheindices.cloneindices.closeindices.createindices.deleteindices.deleteAliasindices.deleteTemplateindices.existsindices.existsAliasindices.existsTemplateindices.existsTypeindices.flushindices.flushSyncedindices.forcemergeindices.getindices.getAliasindices.getFieldMappingindices.getMappingindices.getSettingsindices.getTemplateindices.getUpgradeindices.openindices.putAliasindices.putMappingindices.putSettingsindices.putTemplateindices.recoveryindices.refreshindices.rolloverindices.segmentsindices.shardStoresindices.shrinkindices.splitindices.statsindices.updateAliasesindices.upgradeindices.validateQueryingest.deletePipelineingest.getPipelineingest.processorGrokingest.putPipelineingest.simulatenodes.hotThreadsnodes.infonodes.reloadSecureSettingsnodes.statsnodes.usagesnapshot.createsnapshot.createRepositorysnapshot.deletesnapshot.deleteRepositorysnapshot.getsnapshot.getRepositorysnapshot.restoresnapshot.statussnapshot.verifyRepositorytasks.canceltasks.gettasks.list
- 7.3 API
bulkclearScrollcountcreatedeletedeleteByQuerydeleteByQueryRethrottledeleteScriptexistsexistsSourceexplainfieldCapsgetgetScriptgetSourceindexinfomgetmsearchmsearchTemplatemtermvectorspingputScriptrankEvalreindexreindexRethrottlerenderSearchTemplatescriptsPainlessExecutescrollsearchsearchShardssearchTemplatetermvectorsupdateupdateByQueryupdateByQueryRethrottlecat.aliasescat.allocationcat.countcat.fielddatacat.healthcat.helpcat.indicescat.mastercat.nodeattrscat.nodescat.pendingTaskscat.pluginscat.recoverycat.repositoriescat.segmentscat.shardscat.snapshotscat.taskscat.templatescat.threadPoolcluster.allocationExplaincluster.getSettingscluster.healthcluster.pendingTaskscluster.putSettingscluster.remoteInfocluster.reroutecluster.statecluster.statsindices.analyzeindices.clearCacheindices.closeindices.createindices.deleteindices.deleteAliasindices.deleteTemplateindices.existsindices.existsAliasindices.existsTemplateindices.existsTypeindices.flushindices.flushSyncedindices.forcemergeindices.getindices.getAliasindices.getFieldMappingindices.getMappingindices.getSettingsindices.getTemplateindices.getUpgradeindices.openindices.putAliasindices.putMappingindices.putSettingsindices.putTemplateindices.recoveryindices.refreshindices.rolloverindices.segmentsindices.shardStoresindices.shrinkindices.splitindices.statsindices.updateAliasesindices.upgradeindices.validateQueryingest.deletePipelineingest.getPipelineingest.processorGrokingest.putPipelineingest.simulatenodes.hotThreadsnodes.infonodes.reloadSecureSettingsnodes.statsnodes.usagesnapshot.createsnapshot.createRepositorysnapshot.deletesnapshot.deleteRepositorysnapshot.getsnapshot.getRepositorysnapshot.restoresnapshot.statussnapshot.verifyRepositorytasks.canceltasks.gettasks.list
- 7.2 API
bulkclearScrollcountcreatedeletedeleteByQuerydeleteByQueryRethrottledeleteScriptexistsexistsSourceexplainfieldCapsgetgetScriptgetSourceindexinfomgetmsearchmsearchTemplatemtermvectorspingputScriptrankEvalreindexreindexRethrottlerenderSearchTemplatescriptsPainlessContextscriptsPainlessExecutescrollsearchsearchShardssearchTemplatetermvectorsupdateupdateByQueryupdateByQueryRethrottlecat.aliasescat.allocationcat.countcat.fielddatacat.healthcat.helpcat.indicescat.mastercat.nodeattrscat.nodescat.pendingTaskscat.pluginscat.recoverycat.repositoriescat.segmentscat.shardscat.snapshotscat.taskscat.templatescat.threadPoolcluster.allocationExplaincluster.getSettingscluster.healthcluster.pendingTaskscluster.putSettingscluster.remoteInfocluster.reroutecluster.statecluster.statsindices.analyzeindices.clearCacheindices.closeindices.createindices.deleteindices.deleteAliasindices.deleteTemplateindices.existsindices.existsAliasindices.existsTemplateindices.existsTypeindices.flushindices.flushSyncedindices.forcemergeindices.getindices.getAliasindices.getFieldMappingindices.getMappingindices.getSettingsindices.getTemplateindices.getUpgradeindices.openindices.putAliasindices.putMappingindices.putSettingsindices.putTemplateindices.recoveryindices.refreshindices.rolloverindices.segmentsindices.shardStoresindices.shrinkindices.splitindices.statsindices.updateAliasesindices.upgradeindices.validateQueryingest.deletePipelineingest.getPipelineingest.processorGrokingest.putPipelineingest.simulatenodes.hotThreadsnodes.infonodes.reloadSecureSettingsnodes.statsnodes.usagesnapshot.createsnapshot.createRepositorysnapshot.deletesnapshot.deleteRepositorysnapshot.getsnapshot.getRepositorysnapshot.restoresnapshot.statussnapshot.verifyRepositorytasks.canceltasks.gettasks.list
- 7.1 API
bulkclearScrollcountcreatedeletedeleteByQuerydeleteByQueryRethrottledeleteScriptexistsexistsSourceexplainfieldCapsgetgetScriptgetSourceindexinfomgetmsearchmsearchTemplatemtermvectorspingputScriptrankEvalreindexreindexRethrottlerenderSearchTemplatescriptsPainlessExecutescrollsearchsearchShardssearchTemplatetermvectorsupdateupdateByQueryupdateByQueryRethrottlecat.aliasescat.allocationcat.countcat.fielddatacat.healthcat.helpcat.indicescat.mastercat.nodeattrscat.nodescat.pendingTaskscat.pluginscat.recoverycat.repositoriescat.segmentscat.shardscat.snapshotscat.taskscat.templatescat.threadPoolcluster.allocationExplaincluster.getSettingscluster.healthcluster.pendingTaskscluster.putSettingscluster.remoteInfocluster.reroutecluster.statecluster.statsindices.analyzeindices.clearCacheindices.closeindices.createindices.deleteindices.deleteAliasindices.deleteTemplateindices.existsindices.existsAliasindices.existsTemplateindices.existsTypeindices.flushindices.flushSyncedindices.forcemergeindices.getindices.getAliasindices.getFieldMappingindices.getMappingindices.getSettingsindices.getTemplateindices.getUpgradeindices.openindices.putAliasindices.putMappingindices.putSettingsindices.putTemplateindices.recoveryindices.refreshindices.rolloverindices.segmentsindices.shardStoresindices.shrinkindices.splitindices.statsindices.updateAliasesindices.upgradeindices.validateQueryingest.deletePipelineingest.getPipelineingest.processorGrokingest.putPipelineingest.simulatenodes.hotThreadsnodes.infonodes.reloadSecureSettingsnodes.statsnodes.usagesnapshot.createsnapshot.createRepositorysnapshot.deletesnapshot.deleteRepositorysnapshot.getsnapshot.getRepositorysnapshot.restoresnapshot.statussnapshot.verifyRepositorytasks.canceltasks.gettasks.list
- 7.0 API
bulkclearScrollcountcreatedeletedeleteByQuerydeleteByQueryRethrottledeleteScriptexistsexistsSourceexplainfieldCapsgetgetScriptgetSourceindexinfomgetmsearchmsearchTemplatemtermvectorspingputScriptrankEvalreindexreindexRethrottlerenderSearchTemplatescriptsPainlessExecutescrollsearchsearchShardssearchTemplatetermvectorsupdateupdateByQueryupdateByQueryRethrottlecat.aliasescat.allocationcat.countcat.fielddatacat.healthcat.helpcat.indicescat.mastercat.nodeattrscat.nodescat.pendingTaskscat.pluginscat.recoverycat.repositoriescat.segmentscat.shardscat.snapshotscat.taskscat.templatescat.threadPoolcluster.allocationExplaincluster.getSettingscluster.healthcluster.pendingTaskscluster.putSettingscluster.remoteInfocluster.reroutecluster.statecluster.statsindices.analyzeindices.clearCacheindices.closeindices.createindices.deleteindices.deleteAliasindices.deleteTemplateindices.existsindices.existsAliasindices.existsTemplateindices.existsTypeindices.flushindices.flushSyncedindices.forcemergeindices.getindices.getAliasindices.getFieldMappingindices.getMappingindices.getSettingsindices.getTemplateindices.getUpgradeindices.openindices.putAliasindices.putMappingindices.putSettingsindices.putTemplateindices.recoveryindices.refreshindices.rolloverindices.segmentsindices.shardStoresindices.shrinkindices.splitindices.statsindices.updateAliasesindices.upgradeindices.validateQueryingest.deletePipelineingest.getPipelineingest.processorGrokingest.putPipelineingest.simulatenodes.hotThreadsnodes.infonodes.reloadSecureSettingsnodes.statsnodes.usagesnapshot.createsnapshot.createRepositorysnapshot.deletesnapshot.deleteRepositorysnapshot.getsnapshot.getRepositorysnapshot.restoresnapshot.statussnapshot.verifyRepositorytasks.canceltasks.gettasks.list
- 6.8 API
bulkclearScrollcountcreatedeletedeleteByQuerydeleteByQueryRethrottledeleteScriptexistsexistsSourceexplainfieldCapsgetgetScriptgetSourceindexinfomgetmsearchmsearchTemplatemtermvectorspingputScriptrankEvalreindexreindexRethrottlerenderSearchTemplatescriptsPainlessExecutescrollsearchsearchShardssearchTemplatetermvectorsupdateupdateByQueryupdateByQueryRethrottlecat.aliasescat.allocationcat.countcat.fielddatacat.healthcat.helpcat.indicescat.mastercat.nodeattrscat.nodescat.pendingTaskscat.pluginscat.recoverycat.repositoriescat.segmentscat.shardscat.snapshotscat.taskscat.templatescat.threadPoolcluster.allocationExplaincluster.getSettingscluster.healthcluster.pendingTaskscluster.putSettingscluster.remoteInfocluster.reroutecluster.statecluster.statsindices.analyzeindices.clearCacheindices.closeindices.createindices.deleteindices.deleteAliasindices.deleteTemplateindices.existsindices.existsAliasindices.existsTemplateindices.existsTypeindices.flushindices.flushSyncedindices.forcemergeindices.getindices.getAliasindices.getFieldMappingindices.getMappingindices.getSettingsindices.getTemplateindices.getUpgradeindices.openindices.putAliasindices.putMappingindices.putSettingsindices.putTemplateindices.recoveryindices.refreshindices.rolloverindices.segmentsindices.shardStoresindices.shrinkindices.splitindices.statsindices.updateAliasesindices.upgradeindices.validateQueryingest.deletePipelineingest.getPipelineingest.processorGrokingest.putPipelineingest.simulatenodes.hotThreadsnodes.infonodes.reloadSecureSettingsnodes.statsnodes.usagesnapshot.createsnapshot.createRepositorysnapshot.deletesnapshot.deleteRepositorysnapshot.getsnapshot.getRepositorysnapshot.restoresnapshot.statussnapshot.verifyRepositorytasks.canceltasks.gettasks.list
- 5.6 API
bulkclearScrollcountcountPercolatecreatedeletedeleteByQuerydeleteScriptdeleteTemplateexistsexistsSourceexplainfieldCapsfieldStatsgetgetScriptgetSourcegetTemplateindexinfomgetmpercolatemsearchmsearchTemplatemtermvectorspercolatepingputScriptputTemplatereindexreindexRethrottlerenderSearchTemplatescrollsearchsearchShardssearchTemplatesuggesttermvectorsupdateupdateByQuerycat.aliasescat.allocationcat.countcat.fielddatacat.healthcat.helpcat.indicescat.mastercat.nodeattrscat.nodescat.pendingTaskscat.pluginscat.recoverycat.repositoriescat.segmentscat.shardscat.snapshotscat.taskscat.templatescat.threadPoolcluster.allocationExplaincluster.getSettingscluster.healthcluster.pendingTaskscluster.putSettingscluster.remoteInfocluster.reroutecluster.statecluster.statsindices.analyzeindices.clearCacheindices.closeindices.createindices.deleteindices.deleteAliasindices.deleteTemplateindices.existsindices.existsAliasindices.existsTemplateindices.existsTypeindices.flushindices.flushSyncedindices.forcemergeindices.getindices.getAliasindices.getFieldMappingindices.getMappingindices.getSettingsindices.getTemplateindices.getUpgradeindices.openindices.putAliasindices.putMappingindices.putSettingsindices.putTemplateindices.recoveryindices.refreshindices.rolloverindices.segmentsindices.shardStoresindices.shrinkindices.statsindices.updateAliasesindices.upgradeindices.validateQueryingest.deletePipelineingest.getPipelineingest.processorGrokingest.putPipelineingest.simulatenodes.hotThreadsnodes.infonodes.statssnapshot.createsnapshot.createRepositorysnapshot.deletesnapshot.deleteRepositorysnapshot.getsnapshot.getRepositorysnapshot.restoresnapshot.statussnapshot.verifyRepositorytasks.canceltasks.gettasks.list
- Changelog
- Host
- Transport
- Errors
- API Param Types
IMPORTANT: elasticsearch.js has been replaced by the new Elasticsearch JavaScript client. We strongly advise you to migrate to the new client. To learn more, see the migration guide.
mget
editmget
editclient.mget([params, [callback]])
Get multiple documents based on an index, type (optional) and ids. The body required by mget can take two forms: an array of document locations, or an array of document ids.
Check the API Conventions and the elasticsearch docs for more information pertaining to this method.
An array of doc locations. Useful for getting documents from different indices.
const response = await client.mget({ body: { docs: [ { _index: 'indexA', _type: 'typeA', _id: '1' }, { _index: 'indexB', _type: 'typeB', _id: '1' }, { _index: 'indexC', _type: 'typeC', _id: '1' } ] } });
An array of ids. You must also specify the index and type that apply to all of the ids.
const response = await client.mget({ index: 'myindex', type: 'mytype', body: { ids: [1, 2, 3] } });
Params
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|