- 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.
explain
editexplain
editclient.explain([params, [callback]])
Provides details about a specific document’s score in relation to a specific query. It will also tell you if the document matches the specified query.
Check the API Conventions and the elasticsearch docs for more information pertaining to this method.
See how a document is scored against a simple query.
const response = await client.explain({ // the document to test index: 'myindex', type: 'mytype', id: '1', // the query to score it against q: 'field:value' });
See how a document is scored against a query written in the Query DSL.
const response = await client.explain({ index: 'myindex', type: 'mytype', id: '1', body: { query: { match: { title: 'test' } } } });
Params
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|