@opensearch-project/opensearch 3.5.1 → 3.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/api/OpenSearchApi.d.ts +366 -0
- package/api/OpenSearchApi.js +202 -135
- package/api/_core/bulk.d.ts +3 -8
- package/api/_core/bulk.js +3 -3
- package/api/_core/bulkStream.d.ts +2 -7
- package/api/_core/bulkStream.js +2 -2
- package/api/_core/clearScroll.js +3 -3
- package/api/_core/count.js +3 -3
- package/api/_core/create.js +4 -4
- package/api/_core/createPit.d.ts +7 -4
- package/api/_core/createPit.js +8 -4
- package/api/_core/delete.js +4 -4
- package/api/_core/deleteAllPits.js +1 -1
- package/api/_core/deleteByQuery.js +3 -3
- package/api/_core/deleteByQueryRethrottle.js +1 -1
- package/api/_core/deletePit.js +1 -1
- package/api/_core/deleteScript.js +1 -1
- package/api/_core/exists.js +4 -4
- package/api/_core/existsSource.js +4 -4
- package/api/_core/explain.d.ts +4 -2
- package/api/_core/explain.js +3 -3
- package/api/_core/fieldCaps.js +4 -4
- package/api/_core/get.d.ts +3 -1
- package/api/_core/get.js +5 -5
- package/api/_core/getAllPits.js +1 -1
- package/api/_core/getScript.js +1 -1
- package/api/_core/getScriptContext.js +1 -1
- package/api/_core/getScriptLanguages.js +1 -1
- package/api/_core/getSource.d.ts +1 -1
- package/api/_core/getSource.js +5 -5
- package/api/_core/index.js +4 -4
- package/api/_core/info.js +1 -1
- package/api/_core/mget.js +4 -4
- package/api/_core/msearch.d.ts +1 -0
- package/api/_core/msearch.js +3 -2
- package/api/_core/msearchTemplate.js +2 -2
- package/api/_core/mtermvectors.js +9 -9
- package/api/_core/ping.js +1 -1
- package/api/_core/putScript.js +1 -1
- package/api/_core/rankEval.js +2 -2
- package/api/_core/reindex.js +1 -1
- package/api/_core/reindexRethrottle.js +1 -1
- package/api/_core/renderSearchTemplate.js +1 -1
- package/api/_core/scriptsPainlessExecute.d.ts +1 -1
- package/api/_core/scriptsPainlessExecute.js +1 -1
- package/api/_core/scroll.d.ts +1 -1
- package/api/_core/scroll.js +1 -1
- package/api/_core/search.d.ts +7 -3
- package/api/_core/search.js +4 -3
- package/api/_core/searchShards.d.ts +5 -0
- package/api/_core/searchShards.js +3 -2
- package/api/_core/searchTemplate.d.ts +4 -17
- package/api/_core/searchTemplate.js +5 -3
- package/api/_core/termvectors.js +9 -9
- package/api/_core/update.js +2 -2
- package/api/_core/updateByQuery.js +3 -3
- package/api/_core/updateByQueryRethrottle.js +1 -1
- package/api/_types/_common.aggregations.d.ts +288 -386
- package/api/_types/_common.analysis.d.ts +12 -5
- package/api/_types/_common.d.ts +80 -54
- package/api/_types/_common.mapping.d.ts +35 -3
- package/api/_types/_common.query_dsl.d.ts +54 -26
- package/api/_types/_core.bulk.d.ts +33 -9
- package/api/_types/_core.explain.d.ts +1 -7
- package/api/_types/_core.get.d.ts +7 -3
- package/api/_types/_core.msearch.d.ts +1 -1
- package/api/_types/_core.pit.d.ts +2 -2
- package/api/_types/_core.search.d.ts +82 -33
- package/api/_types/asynchronous_search._common.d.ts +3 -4
- package/api/_types/cat._common.d.ts +19 -0
- package/api/_types/cat.indices.d.ts +28 -0
- package/api/_types/cat.nodes.d.ts +13 -0
- package/api/_types/cat.shards.d.ts +13 -0
- package/api/_types/cat.thread_pool.d.ts +1 -0
- package/api/_types/cluster._common.d.ts +2 -0
- package/api/_types/cluster.allocation_explain.d.ts +3 -0
- package/api/_types/cluster.decommission_awareness.d.ts +1 -3
- package/api/_types/cluster.pending_tasks.d.ts +2 -0
- package/api/_types/cluster.stats.d.ts +3 -3
- package/api/_types/cluster.weighted_routing.d.ts +1 -8
- package/api/_types/flow_framework.common.d.ts +5 -2
- package/api/_types/geospatial._common.d.ts +153 -0
- package/api/_types/index.d.ts +22 -0
- package/api/_types/indices._common.d.ts +75 -19
- package/api/_types/indices.modify_data_stream.d.ts +33 -0
- package/api/_types/ingest._common.d.ts +37 -0
- package/api/_types/ingestion._common.d.ts +70 -0
- package/api/_types/insights._common.d.ts +8 -35
- package/api/_types/ism._common.d.ts +3 -3
- package/api/_types/knn._common.d.ts +45 -6
- package/api/_types/list._common.d.ts +19 -0
- package/api/_types/ltr._common.d.ts +63 -2
- package/api/_types/ml._common.d.ts +218 -168
- package/api/_types/neural._common.d.ts +229 -0
- package/api/_types/nodes._common.d.ts +1 -1
- package/api/_types/nodes.info.d.ts +8 -2
- package/api/_types/nodes.stats.d.ts +51 -2
- package/api/_types/observability._common.d.ts +0 -16
- package/api/_types/ppl._common.d.ts +19 -0
- package/api/_types/query._common.d.ts +0 -20
- package/api/_types/replication._common.d.ts +4 -1
- package/api/_types/rollups._common.d.ts +2 -0
- package/api/_types/search_pipeline._common.d.ts +52 -1
- package/api/_types/search_relevance._common.d.ts +132 -0
- package/api/_types/security._common.d.ts +31 -22
- package/api/_types/security_analytics.alerts.d.ts +59 -0
- package/api/_types/security_analytics.findings.d.ts +65 -0
- package/api/_types/sm._common.d.ts +3 -39
- package/api/_types/sql._common.d.ts +8 -0
- package/api/_types/transforms._common.d.ts +0 -23
- package/api/_types/ubi._common.d.ts +19 -0
- package/api/_types/wlm._common.d.ts +5 -3
- package/api/asynchronousSearch/_api.js +12 -4
- package/api/asynchronousSearch/delete.js +1 -1
- package/api/asynchronousSearch/get.js +1 -1
- package/api/asynchronousSearch/search.js +1 -1
- package/api/asynchronousSearch/stats.js +1 -1
- package/api/cat/_api.js +58 -30
- package/api/cat/aliases.d.ts +2 -1
- package/api/cat/aliases.js +2 -2
- package/api/cat/allPitSegments.d.ts +2 -1
- package/api/cat/allPitSegments.js +2 -2
- package/api/cat/allocation.d.ts +2 -1
- package/api/cat/allocation.js +2 -2
- package/api/cat/clusterManager.d.ts +2 -1
- package/api/cat/clusterManager.js +2 -2
- package/api/cat/count.d.ts +2 -1
- package/api/cat/count.js +3 -3
- package/api/cat/fielddata.d.ts +2 -1
- package/api/cat/fielddata.js +2 -2
- package/api/cat/health.d.ts +2 -1
- package/api/cat/health.js +2 -2
- package/api/cat/help.js +1 -1
- package/api/cat/indices.d.ts +2 -1
- package/api/cat/indices.js +2 -2
- package/api/cat/master.d.ts +2 -1
- package/api/cat/master.js +2 -2
- package/api/cat/nodeattrs.d.ts +2 -1
- package/api/cat/nodeattrs.js +2 -2
- package/api/cat/nodes.d.ts +2 -1
- package/api/cat/nodes.js +3 -3
- package/api/cat/pendingTasks.d.ts +2 -1
- package/api/cat/pendingTasks.js +3 -3
- package/api/cat/pitSegments.d.ts +2 -1
- package/api/cat/pitSegments.js +2 -2
- package/api/cat/plugins.d.ts +2 -1
- package/api/cat/plugins.js +2 -2
- package/api/cat/recovery.d.ts +2 -1
- package/api/cat/recovery.js +3 -3
- package/api/cat/repositories.d.ts +2 -1
- package/api/cat/repositories.js +2 -2
- package/api/cat/segmentReplication.d.ts +2 -1
- package/api/cat/segmentReplication.js +3 -3
- package/api/cat/segments.d.ts +2 -1
- package/api/cat/segments.js +2 -2
- package/api/cat/shards.d.ts +2 -1
- package/api/cat/shards.js +3 -3
- package/api/cat/snapshots.d.ts +2 -1
- package/api/cat/snapshots.js +3 -3
- package/api/cat/tasks.d.ts +2 -1
- package/api/cat/tasks.js +3 -3
- package/api/cat/templates.d.ts +2 -1
- package/api/cat/templates.js +2 -2
- package/api/cat/threadPool.d.ts +2 -1
- package/api/cat/threadPool.js +2 -2
- package/api/cluster/_api.js +63 -38
- package/api/cluster/allocationExplain.js +1 -1
- package/api/cluster/deleteComponentTemplate.js +2 -2
- package/api/cluster/deleteDecommissionAwareness.js +1 -1
- package/api/cluster/deleteVotingConfigExclusions.js +1 -1
- package/api/cluster/deleteWeightedRouting.d.ts +5 -2
- package/api/cluster/deleteWeightedRouting.js +1 -1
- package/api/cluster/existsComponentTemplate.js +3 -3
- package/api/cluster/getComponentTemplate.js +2 -2
- package/api/cluster/getDecommissionAwareness.d.ts +1 -1
- package/api/cluster/getDecommissionAwareness.js +1 -1
- package/api/cluster/getSettings.js +2 -2
- package/api/cluster/getWeightedRouting.d.ts +3 -1
- package/api/cluster/getWeightedRouting.js +1 -1
- package/api/cluster/health.d.ts +2 -1
- package/api/cluster/health.js +3 -3
- package/api/cluster/pendingTasks.js +2 -2
- package/api/cluster/postVotingConfigExclusions.js +1 -1
- package/api/cluster/putComponentTemplate.js +3 -3
- package/api/cluster/putDecommissionAwareness.js +1 -1
- package/api/cluster/putSettings.js +2 -2
- package/api/cluster/putWeightedRouting.d.ts +5 -2
- package/api/cluster/putWeightedRouting.js +1 -1
- package/api/cluster/remoteInfo.js +1 -1
- package/api/cluster/reroute.js +2 -2
- package/api/cluster/state.js +3 -3
- package/api/cluster/stats.js +3 -3
- package/api/danglingIndices/_api.js +13 -6
- package/api/danglingIndices/deleteDanglingIndex.js +1 -1
- package/api/danglingIndices/importDanglingIndex.js +1 -1
- package/api/danglingIndices/listDanglingIndices.d.ts +2 -2
- package/api/danglingIndices/listDanglingIndices.js +1 -1
- package/api/flowFramework/_api.js +27 -13
- package/api/flowFramework/create.js +7 -7
- package/api/flowFramework/delete.js +4 -4
- package/api/flowFramework/deprovision.js +4 -4
- package/api/flowFramework/get.js +3 -3
- package/api/flowFramework/getStatus.js +4 -4
- package/api/flowFramework/getSteps.js +3 -3
- package/api/flowFramework/provision.js +3 -3
- package/api/flowFramework/search.js +1 -1
- package/api/flowFramework/searchState.js +1 -1
- package/api/flowFramework/update.js +8 -8
- package/api/geospatial/_api.js +57 -0
- package/api/geospatial/deleteIp2GeoDatasource.d.ts +30 -0
- package/api/geospatial/deleteIp2GeoDatasource.js +49 -0
- package/api/geospatial/geojsonUploadPost.d.ts +30 -0
- package/api/geospatial/geojsonUploadPost.js +49 -0
- package/api/geospatial/geojsonUploadPut.d.ts +30 -0
- package/api/geospatial/geojsonUploadPut.js +49 -0
- package/api/geospatial/getIp2GeoDatasource.d.ts +31 -0
- package/api/geospatial/getIp2GeoDatasource.js +48 -0
- package/api/geospatial/getUploadStats.d.ts +28 -0
- package/api/geospatial/getUploadStats.js +45 -0
- package/api/geospatial/putIp2GeoDatasource.d.ts +32 -0
- package/api/geospatial/putIp2GeoDatasource.js +53 -0
- package/api/geospatial/putIp2GeoDatasourceSettings.d.ts +32 -0
- package/api/geospatial/putIp2GeoDatasourceSettings.js +50 -0
- package/api/http/_api.js +22 -9
- package/api/index.d.ts +168 -10
- package/api/indices/_api.js +134 -78
- package/api/indices/addBlock.js +1 -1
- package/api/indices/analyze.js +1 -1
- package/api/indices/clearCache.js +3 -3
- package/api/indices/clone.js +1 -1
- package/api/indices/close.js +2 -2
- package/api/indices/create.js +2 -2
- package/api/indices/createDataStream.js +1 -1
- package/api/indices/dataStreamsStats.js +2 -2
- package/api/indices/delete.js +2 -2
- package/api/indices/deleteAlias.js +3 -3
- package/api/indices/deleteDataStream.js +2 -2
- package/api/indices/deleteIndexTemplate.js +2 -2
- package/api/indices/deleteTemplate.js +1 -1
- package/api/indices/exists.js +2 -2
- package/api/indices/existsAlias.js +3 -3
- package/api/indices/existsIndexTemplate.js +2 -2
- package/api/indices/existsTemplate.js +1 -1
- package/api/indices/flush.js +2 -2
- package/api/indices/forcemerge.js +1 -1
- package/api/indices/get.js +2 -2
- package/api/indices/getAlias.js +3 -3
- package/api/indices/getDataStream.js +2 -2
- package/api/indices/getFieldMapping.js +3 -3
- package/api/indices/getIndexTemplate.js +2 -2
- package/api/indices/getMapping.js +2 -2
- package/api/indices/getSettings.js +3 -3
- package/api/indices/getTemplate.js +2 -2
- package/api/indices/getUpgrade.js +2 -2
- package/api/indices/modifyDataStream.d.ts +37 -0
- package/api/indices/modifyDataStream.js +50 -0
- package/api/indices/open.js +2 -2
- package/api/indices/putAlias.js +2 -2
- package/api/indices/putIndexTemplate.js +1 -1
- package/api/indices/putMapping.js +1 -1
- package/api/indices/putSettings.js +3 -3
- package/api/indices/putTemplate.js +1 -1
- package/api/indices/recovery.js +2 -2
- package/api/indices/refresh.js +2 -2
- package/api/indices/resolveIndex.js +1 -1
- package/api/indices/rollover.js +2 -2
- package/api/indices/segments.js +2 -2
- package/api/indices/shardStores.js +5 -5
- package/api/indices/shrink.js +1 -1
- package/api/indices/simulateIndexTemplate.js +1 -1
- package/api/indices/simulateTemplate.js +3 -3
- package/api/indices/split.js +1 -1
- package/api/indices/stats.js +5 -5
- package/api/indices/updateAliases.js +1 -1
- package/api/indices/upgrade.js +2 -2
- package/api/indices/validateQuery.js +2 -2
- package/api/ingest/_api.js +18 -9
- package/api/ingest/deletePipeline.js +1 -1
- package/api/ingest/getPipeline.js +1 -1
- package/api/ingest/processorGrok.js +1 -1
- package/api/ingest/putPipeline.js +1 -1
- package/api/ingest/simulate.js +1 -1
- package/api/ingestion/_api.js +37 -0
- package/api/ingestion/getState.d.ts +34 -0
- package/api/ingestion/getState.js +52 -0
- package/api/ingestion/pause.d.ts +33 -0
- package/api/ingestion/pause.js +51 -0
- package/api/ingestion/resume.d.ts +34 -0
- package/api/ingestion/resume.js +52 -0
- package/api/insights/_api.js +7 -2
- package/api/insights/topQueries.d.ts +1 -1
- package/api/ism/_api.js +40 -24
- package/api/ism/addPolicy.d.ts +1 -1
- package/api/ism/addPolicy.js +2 -2
- package/api/ism/changePolicy.d.ts +1 -1
- package/api/ism/changePolicy.js +2 -2
- package/api/ism/deletePolicy.js +1 -1
- package/api/ism/existsPolicy.js +2 -2
- package/api/ism/explainPolicy.d.ts +1 -1
- package/api/ism/explainPolicy.js +3 -3
- package/api/ism/getPolicies.js +2 -2
- package/api/ism/getPolicy.js +2 -2
- package/api/ism/putPolicies.js +2 -2
- package/api/ism/putPolicy.js +1 -1
- package/api/ism/refreshSearchAnalyzers.d.ts +1 -1
- package/api/ism/refreshSearchAnalyzers.js +3 -3
- package/api/ism/removePolicy.d.ts +1 -1
- package/api/ism/removePolicy.js +2 -2
- package/api/ism/retryIndex.d.ts +1 -1
- package/api/ism/retryIndex.js +3 -3
- package/api/knn/_api.js +20 -10
- package/api/knn/deleteModel.js +1 -1
- package/api/knn/getModel.js +1 -1
- package/api/knn/searchModels.d.ts +1 -1
- package/api/knn/searchModels.js +5 -5
- package/api/knn/stats.d.ts +1 -1
- package/api/knn/stats.js +3 -3
- package/api/knn/trainModel.js +1 -1
- package/api/knn/warmup.js +2 -2
- package/api/list/_api.js +10 -3
- package/api/list/help.js +1 -1
- package/api/list/indices.d.ts +3 -2
- package/api/list/indices.js +5 -5
- package/api/list/shards.d.ts +3 -2
- package/api/list/shards.js +4 -4
- package/api/ltr/_api.js +106 -1
- package/api/ltr/addFeaturesToSet.d.ts +37 -0
- package/api/ltr/addFeaturesToSet.js +55 -0
- package/api/ltr/addFeaturesToSetByQuery.d.ts +35 -0
- package/api/ltr/addFeaturesToSetByQuery.js +57 -0
- package/api/ltr/cacheStats.d.ts +28 -0
- package/api/ltr/cacheStats.js +45 -0
- package/api/ltr/clearCache.d.ts +30 -0
- package/api/ltr/clearCache.js +48 -0
- package/api/ltr/createDefaultStore.d.ts +28 -0
- package/api/ltr/createDefaultStore.js +45 -0
- package/api/ltr/createFeature.d.ts +35 -0
- package/api/ltr/createFeature.js +53 -0
- package/api/ltr/createFeatureset.d.ts +35 -0
- package/api/ltr/createFeatureset.js +53 -0
- package/api/ltr/createModel.d.ts +35 -0
- package/api/ltr/createModel.js +53 -0
- package/api/ltr/createModelFromSet.d.ts +35 -0
- package/api/ltr/createModelFromSet.js +53 -0
- package/api/ltr/createStore.d.ts +30 -0
- package/api/ltr/createStore.js +49 -0
- package/api/ltr/deleteDefaultStore.d.ts +28 -0
- package/api/ltr/deleteDefaultStore.js +45 -0
- package/api/ltr/deleteFeature.d.ts +31 -0
- package/api/ltr/deleteFeature.js +51 -0
- package/api/ltr/deleteFeatureset.d.ts +31 -0
- package/api/ltr/deleteFeatureset.js +51 -0
- package/api/ltr/deleteModel.d.ts +31 -0
- package/api/ltr/deleteModel.js +51 -0
- package/api/ltr/deleteStore.d.ts +30 -0
- package/api/ltr/deleteStore.js +49 -0
- package/api/ltr/getFeature.d.ts +30 -0
- package/api/ltr/getFeature.js +51 -0
- package/api/ltr/getFeatureset.d.ts +30 -0
- package/api/ltr/getFeatureset.js +51 -0
- package/api/ltr/getModel.d.ts +30 -0
- package/api/ltr/getModel.js +51 -0
- package/api/ltr/getStore.d.ts +30 -0
- package/api/ltr/getStore.js +49 -0
- package/api/ltr/listStores.d.ts +28 -0
- package/api/ltr/listStores.js +45 -0
- package/api/ltr/searchFeatures.d.ts +33 -0
- package/api/ltr/searchFeatures.js +51 -0
- package/api/ltr/searchFeaturesets.d.ts +33 -0
- package/api/ltr/searchFeaturesets.js +51 -0
- package/api/ltr/searchModels.d.ts +33 -0
- package/api/ltr/searchModels.js +51 -0
- package/api/ltr/stats.d.ts +1 -1
- package/api/ltr/stats.js +2 -2
- package/api/ltr/updateFeature.d.ts +35 -0
- package/api/ltr/updateFeature.js +53 -0
- package/api/ltr/updateFeatureset.d.ts +35 -0
- package/api/ltr/updateFeatureset.js +53 -0
- package/api/ml/_api.js +239 -116
- package/api/ml/addAgenticMemory.d.ts +45 -0
- package/api/ml/addAgenticMemory.js +50 -0
- package/api/ml/createConnector.d.ts +1 -1
- package/api/ml/createMemoryContainer.d.ts +40 -0
- package/api/ml/createMemoryContainer.js +47 -0
- package/api/ml/createMemoryContainerSession.d.ts +41 -0
- package/api/ml/createMemoryContainerSession.js +50 -0
- package/api/ml/createModelMeta.d.ts +1 -0
- package/api/ml/deleteAgenticMemory.d.ts +33 -0
- package/api/ml/deleteAgenticMemory.js +55 -0
- package/api/ml/deleteAgenticMemoryQuery.d.ts +37 -0
- package/api/ml/deleteAgenticMemoryQuery.js +53 -0
- package/api/ml/deleteMemoryContainer.d.ts +33 -0
- package/api/ml/deleteMemoryContainer.js +51 -0
- package/api/ml/executeAgentStream.d.ts +35 -0
- package/api/ml/executeAgentStream.js +50 -0
- package/api/ml/executeAlgorithm.d.ts +2 -2
- package/api/ml/executeAlgorithm.js +1 -1
- package/api/ml/executeTool.d.ts +35 -0
- package/api/ml/executeTool.js +50 -0
- package/api/ml/getAgenticMemory.d.ts +32 -0
- package/api/ml/getAgenticMemory.js +55 -0
- package/api/ml/getMemoryContainer.d.ts +30 -0
- package/api/ml/getMemoryContainer.js +49 -0
- package/api/ml/getStats.d.ts +1 -1
- package/api/ml/getTool.d.ts +1 -1
- package/api/ml/loadModel.d.ts +2 -1
- package/api/ml/predictModel.d.ts +6 -1
- package/api/ml/predictModelStream.d.ts +37 -0
- package/api/ml/predictModelStream.js +50 -0
- package/api/ml/registerModel.d.ts +3 -0
- package/api/ml/registerModelGroup.d.ts +1 -1
- package/api/ml/registerModelMeta.d.ts +1 -0
- package/api/ml/searchAgenticMemory.d.ts +40 -0
- package/api/ml/searchAgenticMemory.js +53 -0
- package/api/ml/searchAgents.d.ts +4 -2
- package/api/ml/searchConnectors.d.ts +4 -2
- package/api/ml/searchMemory.d.ts +4 -2
- package/api/ml/searchMemoryContainer.d.ts +38 -0
- package/api/ml/searchMemoryContainer.js +47 -0
- package/api/ml/searchMessage.d.ts +4 -2
- package/api/ml/searchModelGroup.d.ts +4 -2
- package/api/ml/searchModels.d.ts +4 -2
- package/api/ml/searchTasks.d.ts +4 -2
- package/api/ml/updateAgenticMemory.d.ts +46 -0
- package/api/ml/updateAgenticMemory.js +56 -0
- package/api/ml/updateConnector.d.ts +2 -2
- package/api/ml/updateMemoryContainer.d.ts +38 -0
- package/api/ml/updateMemoryContainer.js +50 -0
- package/api/neural/_api.js +31 -0
- package/api/neural/stats.d.ts +36 -0
- package/api/neural/stats.js +55 -0
- package/api/nodes/_api.js +16 -7
- package/api/nodes/hotThreads.js +7 -7
- package/api/nodes/info.js +4 -4
- package/api/nodes/reloadSecureSettings.js +2 -2
- package/api/nodes/stats.js +10 -10
- package/api/nodes/usage.js +1 -1
- package/api/notifications/_api.js +31 -18
- package/api/notifications/createConfig.js +1 -1
- package/api/notifications/deleteConfig.js +1 -1
- package/api/notifications/deleteConfigs.js +1 -1
- package/api/notifications/getConfigs.js +1 -1
- package/api/notifications/listChannels.js +1 -1
- package/api/notifications/listFeatures.js +1 -1
- package/api/notifications/sendTest.js +1 -1
- package/api/notifications/updateConfig.js +1 -1
- package/api/observability/_api.js +25 -14
- package/api/observability/createObject.js +1 -1
- package/api/observability/deleteObject.js +1 -1
- package/api/observability/deleteObjects.js +2 -2
- package/api/observability/getObject.js +1 -1
- package/api/observability/updateObject.js +2 -2
- package/api/ppl/_api.js +14 -6
- package/api/ppl/explain.d.ts +2 -1
- package/api/ppl/explain.js +5 -5
- package/api/ppl/getStats.d.ts +2 -1
- package/api/ppl/getStats.js +4 -4
- package/api/ppl/postStats.d.ts +2 -1
- package/api/ppl/postStats.js +5 -5
- package/api/ppl/query.d.ts +2 -1
- package/api/ppl/query.js +5 -5
- package/api/query/_api.js +19 -10
- package/api/query/datasourceDelete.js +2 -2
- package/api/query/datasourceRetrieve.js +2 -2
- package/api/query/datasourcesCreate.js +2 -2
- package/api/query/datasourcesList.js +1 -1
- package/api/query/datasourcesUpdate.js +2 -2
- package/api/remoteStore/_api.js +6 -1
- package/api/remoteStore/restore.js +1 -1
- package/api/replication/_api.js +32 -17
- package/api/replication/autofollowStats.js +1 -1
- package/api/replication/createReplicationRule.js +1 -1
- package/api/replication/deleteReplicationRule.js +1 -1
- package/api/replication/followerStats.js +1 -1
- package/api/replication/leaderStats.js +1 -1
- package/api/replication/pause.js +1 -1
- package/api/replication/resume.js +1 -1
- package/api/replication/start.js +1 -1
- package/api/replication/status.js +1 -1
- package/api/replication/stop.js +1 -1
- package/api/replication/updateSettings.js +1 -1
- package/api/rollups/_api.js +16 -6
- package/api/rollups/delete.js +3 -3
- package/api/rollups/explain.js +3 -3
- package/api/rollups/get.js +3 -3
- package/api/rollups/put.js +6 -6
- package/api/rollups/start.js +3 -3
- package/api/rollups/stop.js +3 -3
- package/api/searchPipeline/_api.js +10 -3
- package/api/searchPipeline/put.js +1 -1
- package/api/searchRelevance/_api.js +117 -0
- package/api/searchRelevance/deleteExperiments.d.ts +30 -0
- package/api/searchRelevance/deleteExperiments.js +49 -0
- package/api/searchRelevance/deleteJudgments.d.ts +30 -0
- package/api/searchRelevance/deleteJudgments.js +49 -0
- package/api/searchRelevance/deleteQuerySets.d.ts +30 -0
- package/api/searchRelevance/deleteQuerySets.js +49 -0
- package/api/searchRelevance/deleteScheduledExperiments.d.ts +30 -0
- package/api/searchRelevance/deleteScheduledExperiments.js +49 -0
- package/api/searchRelevance/deleteSearchConfigurations.d.ts +30 -0
- package/api/searchRelevance/deleteSearchConfigurations.js +49 -0
- package/api/searchRelevance/experimentsSearch.d.ts +31 -0
- package/api/searchRelevance/experimentsSearch.js +47 -0
- package/api/searchRelevance/getExperiments.d.ts +30 -0
- package/api/searchRelevance/getExperiments.js +48 -0
- package/api/searchRelevance/getJudgments.d.ts +30 -0
- package/api/searchRelevance/getJudgments.js +48 -0
- package/api/searchRelevance/getNodeStats.d.ts +42 -0
- package/api/searchRelevance/getNodeStats.js +56 -0
- package/api/searchRelevance/getQuerySets.d.ts +30 -0
- package/api/searchRelevance/getQuerySets.js +48 -0
- package/api/searchRelevance/getScheduledExperiments.d.ts +30 -0
- package/api/searchRelevance/getScheduledExperiments.js +48 -0
- package/api/searchRelevance/getSearchConfigurations.d.ts +30 -0
- package/api/searchRelevance/getSearchConfigurations.js +48 -0
- package/api/searchRelevance/getStats.d.ts +41 -0
- package/api/searchRelevance/getStats.js +53 -0
- package/api/searchRelevance/judgmentsSearch.d.ts +31 -0
- package/api/searchRelevance/judgmentsSearch.js +47 -0
- package/api/searchRelevance/postQuerySets.d.ts +30 -0
- package/api/searchRelevance/postQuerySets.js +47 -0
- package/api/searchRelevance/postScheduledExperiments.d.ts +30 -0
- package/api/searchRelevance/postScheduledExperiments.js +47 -0
- package/api/searchRelevance/putExperiments.d.ts +32 -0
- package/api/searchRelevance/putExperiments.js +47 -0
- package/api/searchRelevance/putJudgments.d.ts +32 -0
- package/api/searchRelevance/putJudgments.js +47 -0
- package/api/searchRelevance/putQuerySets.d.ts +30 -0
- package/api/searchRelevance/putQuerySets.js +47 -0
- package/api/searchRelevance/putSearchConfigurations.d.ts +30 -0
- package/api/searchRelevance/putSearchConfigurations.js +47 -0
- package/api/searchRelevance/querySetsSearch.d.ts +31 -0
- package/api/searchRelevance/querySetsSearch.js +47 -0
- package/api/searchRelevance/searchConfigurationsSearch.d.ts +31 -0
- package/api/searchRelevance/searchConfigurationsSearch.js +47 -0
- package/api/security/_api.js +227 -147
- package/api/security/changePassword.js +1 -1
- package/api/security/configUpgradeCheck.js +1 -1
- package/api/security/configUpgradePerform.js +1 -1
- package/api/security/createActionGroup.js +1 -1
- package/api/security/createAllowlist.js +1 -1
- package/api/security/createRole.js +1 -1
- package/api/security/createRoleMapping.js +1 -1
- package/api/security/createTenant.js +1 -1
- package/api/security/createUpdateTenancyConfig.js +1 -1
- package/api/security/createUser.js +1 -1
- package/api/security/deleteActionGroup.js +1 -1
- package/api/security/deleteDistinguishedName.js +1 -1
- package/api/security/deleteRole.js +1 -1
- package/api/security/deleteRoleMapping.js +1 -1
- package/api/security/deleteTenant.js +1 -1
- package/api/security/deleteUser.js +1 -1
- package/api/security/flushCache.js +1 -1
- package/api/security/generateOboToken.js +1 -1
- package/api/security/getAccountDetails.js +1 -1
- package/api/security/getActionGroup.js +1 -1
- package/api/security/getActionGroups.js +1 -1
- package/api/security/getAllowlist.js +1 -1
- package/api/security/getAuditConfiguration.js +1 -1
- package/api/security/getCertificates.js +1 -1
- package/api/security/getConfiguration.js +1 -1
- package/api/security/getDistinguishedName.js +1 -1
- package/api/security/getDistinguishedNames.js +1 -1
- package/api/security/getRole.js +1 -1
- package/api/security/getRoleMapping.js +1 -1
- package/api/security/getRoleMappings.js +1 -1
- package/api/security/getRoles.js +1 -1
- package/api/security/getSslinfo.d.ts +2 -1
- package/api/security/getSslinfo.js +1 -1
- package/api/security/getTenancyConfig.js +1 -1
- package/api/security/getTenant.js +1 -1
- package/api/security/getTenants.js +1 -1
- package/api/security/getUser.js +1 -1
- package/api/security/getUsers.js +1 -1
- package/api/security/health.js +1 -1
- package/api/security/patchActionGroup.js +1 -1
- package/api/security/patchActionGroups.js +1 -1
- package/api/security/patchAllowlist.js +1 -1
- package/api/security/patchAuditConfiguration.js +1 -1
- package/api/security/patchConfiguration.js +1 -1
- package/api/security/patchDistinguishedName.d.ts +3 -1
- package/api/security/patchDistinguishedNames.js +1 -1
- package/api/security/patchRole.js +1 -1
- package/api/security/patchRoleMapping.js +1 -1
- package/api/security/patchRoleMappings.js +1 -1
- package/api/security/patchRoles.js +1 -1
- package/api/security/patchTenant.js +1 -1
- package/api/security/patchTenants.js +1 -1
- package/api/security/patchUser.js +1 -1
- package/api/security/patchUsers.js +1 -1
- package/api/security/reloadHttpCertificates.js +1 -1
- package/api/security/reloadTransportCertificates.js +1 -1
- package/api/security/updateAuditConfiguration.js +1 -1
- package/api/security/updateConfiguration.js +1 -1
- package/api/security/updateDistinguishedName.js +1 -1
- package/api/securityAnalytics/_api.js +41 -0
- package/api/securityAnalytics/getAlerts.d.ts +42 -0
- package/api/securityAnalytics/getAlerts.js +58 -0
- package/api/securityAnalytics/getFindings.d.ts +43 -0
- package/api/securityAnalytics/getFindings.js +59 -0
- package/api/securityAnalytics/searchFindingCorrelations.d.ts +33 -0
- package/api/securityAnalytics/searchFindingCorrelations.js +52 -0
- package/api/sm/_api.js +28 -16
- package/api/sm/deletePolicy.d.ts +2 -2
- package/api/sm/getPolicies.d.ts +2 -1
- package/api/sm/getPolicies.js +1 -1
- package/api/snapshot/_api.js +31 -16
- package/api/snapshot/cleanupRepository.js +2 -2
- package/api/snapshot/clone.js +2 -2
- package/api/snapshot/create.js +2 -2
- package/api/snapshot/createRepository.js +2 -2
- package/api/snapshot/delete.js +2 -2
- package/api/snapshot/deleteRepository.js +2 -2
- package/api/snapshot/get.js +3 -3
- package/api/snapshot/getRepository.js +2 -2
- package/api/snapshot/restore.d.ts +1 -0
- package/api/snapshot/restore.js +2 -2
- package/api/snapshot/status.js +2 -2
- package/api/snapshot/verifyRepository.js +2 -2
- package/api/sql/_api.js +18 -8
- package/api/sql/close.d.ts +1 -1
- package/api/sql/close.js +5 -5
- package/api/sql/explain.d.ts +1 -1
- package/api/sql/explain.js +5 -5
- package/api/sql/getStats.d.ts +2 -1
- package/api/sql/getStats.js +4 -4
- package/api/sql/postStats.d.ts +1 -1
- package/api/sql/postStats.js +5 -5
- package/api/sql/query.d.ts +1 -1
- package/api/sql/query.js +5 -5
- package/api/sql/settings.d.ts +1 -1
- package/api/sql/settings.js +4 -4
- package/api/tasks/_api.js +12 -3
- package/api/tasks/cancel.js +1 -1
- package/api/tasks/delete.d.ts +30 -0
- package/api/tasks/delete.js +49 -0
- package/api/tasks/get.js +1 -1
- package/api/tasks/list.js +1 -1
- package/api/transforms/_api.js +20 -8
- package/api/transforms/delete.d.ts +2 -2
- package/api/transforms/delete.js +1 -1
- package/api/transforms/explain.js +1 -1
- package/api/transforms/get.js +1 -1
- package/api/transforms/preview.js +1 -1
- package/api/transforms/put.js +1 -1
- package/api/transforms/search.js +1 -1
- package/api/transforms/start.js +1 -1
- package/api/transforms/stop.js +1 -1
- package/api/ubi/_api.js +31 -0
- package/api/ubi/initialize.d.ts +27 -0
- package/api/ubi/initialize.js +45 -0
- package/api/wlm/_api.js +16 -8
- package/lib/Connection.d.ts +1 -2
- package/lib/Connection.js +5 -3
- package/lib/Helpers.js +8 -8
- package/lib/ProxyAgent.js +125 -0
- package/lib/aws/shared.js +4 -3
- package/package.json +9 -4
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
|
|
17
17
|
import * as Common from './_common'
|
|
18
18
|
|
|
19
|
-
export type Analyzer = CustomAnalyzer | FingerprintAnalyzer | KeywordAnalyzer | LanguageAnalyzer | NoriAnalyzer | PatternAnalyzer | SimpleAnalyzer | StandardAnalyzer | StopAnalyzer | WhitespaceAnalyzer | IcuAnalyzer | KuromojiAnalyzer | SnowballAnalyzer | DutchAnalyzer | SmartcnAnalyzer | CjkAnalyzer | PhoneAnalyzer
|
|
19
|
+
export type Analyzer = CustomAnalyzer | FingerprintAnalyzer | KeywordAnalyzer | LanguageAnalyzer | NoriAnalyzer | PatternAnalyzer | SimpleAnalyzer | StandardAnalyzer | StopAnalyzer | WhitespaceAnalyzer | IcuAnalyzer | KuromojiAnalyzer | SnowballAnalyzer | DutchAnalyzer | SmartcnAnalyzer | CjkAnalyzer | PhoneAnalyzer | PhoneSearchAnalyzer
|
|
20
20
|
|
|
21
21
|
export type AsciiFoldingTokenFilter = TokenFilterBase & {
|
|
22
22
|
preserve_original?: Common.StringifiedBoolean;
|
|
@@ -438,9 +438,16 @@ export type PersianStemTokenFilter = TokenFilterBase & {
|
|
|
438
438
|
type: 'persian_stem';
|
|
439
439
|
}
|
|
440
440
|
|
|
441
|
-
export type PhoneAnalyzer = {
|
|
441
|
+
export type PhoneAnalyzer = PhoneAnalyzerBase & {
|
|
442
|
+
type: 'phone';
|
|
443
|
+
}
|
|
444
|
+
|
|
445
|
+
export type PhoneAnalyzerBase = {
|
|
442
446
|
'phone-region'?: string;
|
|
443
|
-
|
|
447
|
+
}
|
|
448
|
+
|
|
449
|
+
export type PhoneSearchAnalyzer = PhoneAnalyzerBase & {
|
|
450
|
+
type: 'phone-search';
|
|
444
451
|
}
|
|
445
452
|
|
|
446
453
|
export type PhoneticEncoder = 'beider_morse' | 'caverphone1' | 'caverphone2' | 'cologne' | 'daitch_mokotoff' | 'double_metaphone' | 'haasephonetik' | 'koelnerphonetik' | 'metaphone' | 'nysiis' | 'refined_soundex' | 'soundex'
|
|
@@ -480,8 +487,8 @@ export type ReverseTokenFilter = TokenFilterBase & {
|
|
|
480
487
|
|
|
481
488
|
export type ShingleTokenFilter = TokenFilterBase & {
|
|
482
489
|
filler_token?: string;
|
|
483
|
-
max_shingle_size?:
|
|
484
|
-
min_shingle_size?:
|
|
490
|
+
max_shingle_size?: Common.StringifiedInteger;
|
|
491
|
+
min_shingle_size?: Common.StringifiedInteger;
|
|
485
492
|
output_unigrams?: boolean;
|
|
486
493
|
output_unigrams_if_no_shingles?: boolean;
|
|
487
494
|
token_separator?: string;
|
package/api/_types/_common.d.ts
CHANGED
|
@@ -80,22 +80,7 @@ export type ByteCount = number
|
|
|
80
80
|
|
|
81
81
|
export type ByteUnit = 'b' | 'kb' | 'k' | 'mb' | 'm' | 'gb' | 'g' | 'tb' | 't' | 'pb' | 'p'
|
|
82
82
|
|
|
83
|
-
export type ClusterDetails = {
|
|
84
|
-
_shards?: ShardStatistics;
|
|
85
|
-
failures?: ShardFailure[];
|
|
86
|
-
indices: string;
|
|
87
|
-
status: ClusterSearchStatus;
|
|
88
|
-
timed_out: boolean;
|
|
89
|
-
took?: DurationValueUnitMillis;
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
export type ClusterSearchStatus = 'failed' | 'partial' | 'running' | 'skipped' | 'successful'
|
|
93
|
-
|
|
94
83
|
export type ClusterStatistics = {
|
|
95
|
-
details?: Record<string, ClusterDetails>;
|
|
96
|
-
failed: number;
|
|
97
|
-
partial: number;
|
|
98
|
-
running: number;
|
|
99
84
|
skipped: number;
|
|
100
85
|
successful: number;
|
|
101
86
|
total: number;
|
|
@@ -126,6 +111,16 @@ export type DateMath = string
|
|
|
126
111
|
|
|
127
112
|
export type DateTime = string | EpochTimeUnitMillis
|
|
128
113
|
|
|
114
|
+
export type DerivedField = {
|
|
115
|
+
format?: string;
|
|
116
|
+
ignore_malformed?: boolean;
|
|
117
|
+
name: string;
|
|
118
|
+
prefilter_field?: string;
|
|
119
|
+
properties?: Record<string, any>;
|
|
120
|
+
script: Script;
|
|
121
|
+
type: string;
|
|
122
|
+
}
|
|
123
|
+
|
|
129
124
|
export type DFIIndependenceMeasure = 'chisquared' | 'saturated' | 'standardized'
|
|
130
125
|
|
|
131
126
|
export type DFRAfterEffect = 'b' | 'l' | 'no'
|
|
@@ -167,6 +162,7 @@ export type EpochTimeUnitSeconds = UnitSeconds
|
|
|
167
162
|
|
|
168
163
|
export type ErrorCause = {
|
|
169
164
|
caused_by?: ErrorCause;
|
|
165
|
+
header?: Record<string, StringOrStringArray>;
|
|
170
166
|
reason?: string;
|
|
171
167
|
root_cause?: ErrorCause[];
|
|
172
168
|
stack_trace?: string;
|
|
@@ -205,8 +201,7 @@ export type FieldSizeUsage = {
|
|
|
205
201
|
size_in_bytes: ByteCount;
|
|
206
202
|
}
|
|
207
203
|
|
|
208
|
-
export type FieldSort =
|
|
209
|
-
format?: string;
|
|
204
|
+
export type FieldSort = {
|
|
210
205
|
missing?: FieldValue;
|
|
211
206
|
mode?: SortMode;
|
|
212
207
|
nested?: NestedSortValue;
|
|
@@ -219,6 +214,10 @@ export type FieldSortNumericType = 'date' | 'date_nanos' | 'double' | 'long'
|
|
|
219
214
|
|
|
220
215
|
export type FieldValue = boolean | undefined | number | string
|
|
221
216
|
|
|
217
|
+
export type FieldWithDirection = Record<string, SortOrder>
|
|
218
|
+
|
|
219
|
+
export type FieldWithOrder = Record<string, FieldSort>
|
|
220
|
+
|
|
222
221
|
export type FlushStats = {
|
|
223
222
|
periodic: number;
|
|
224
223
|
total: number;
|
|
@@ -234,8 +233,10 @@ export type GeoDistanceSort = {
|
|
|
234
233
|
distance_type?: GeoDistanceType;
|
|
235
234
|
ignore_unmapped?: boolean;
|
|
236
235
|
mode?: SortMode;
|
|
236
|
+
nested?: NestedSortValue;
|
|
237
237
|
order?: SortOrder;
|
|
238
238
|
unit?: DistanceUnit;
|
|
239
|
+
validation_method?: Common_QueryDsl.GeoValidationMethod;
|
|
239
240
|
[key: string]: any | GeoLocation[];
|
|
240
241
|
}
|
|
241
242
|
|
|
@@ -249,11 +250,6 @@ export type GeoHashLocation = {
|
|
|
249
250
|
|
|
250
251
|
export type GeoHashPrecision = number | string
|
|
251
252
|
|
|
252
|
-
export type GeoLine = {
|
|
253
|
-
coordinates: number[][];
|
|
254
|
-
type: string;
|
|
255
|
-
}
|
|
256
|
-
|
|
257
253
|
export type GeoLocation = LatLonGeoLocation | GeoHashLocation | number[] | string
|
|
258
254
|
|
|
259
255
|
export type GeoShapeRelation = 'contains' | 'disjoint' | 'intersects' | 'within'
|
|
@@ -306,6 +302,7 @@ export type IndexingStats = {
|
|
|
306
302
|
index_time_in_millis: DurationValueUnitMillis;
|
|
307
303
|
index_total: number;
|
|
308
304
|
is_throttled: boolean;
|
|
305
|
+
max_last_index_request_timestamp?: number;
|
|
309
306
|
noop_update_total: number;
|
|
310
307
|
throttle_time?: Duration;
|
|
311
308
|
throttle_time_in_millis: DurationValueUnitMillis;
|
|
@@ -320,13 +317,14 @@ export type IndicesResponseBase = AcknowledgedResponseBase & {
|
|
|
320
317
|
_shards?: ShardStatistics;
|
|
321
318
|
}
|
|
322
319
|
|
|
323
|
-
export type InlineGet = {
|
|
320
|
+
export type InlineGet<TDocument = any> = {
|
|
324
321
|
_primary_term?: number;
|
|
325
322
|
_routing?: Routing;
|
|
326
323
|
_seq_no?: SequenceNumber;
|
|
327
|
-
_source?:
|
|
328
|
-
fields?: Record<string,
|
|
324
|
+
_source?: TDocument;
|
|
325
|
+
fields?: Record<string, any>;
|
|
329
326
|
found: boolean;
|
|
327
|
+
[key: string]: any;
|
|
330
328
|
}
|
|
331
329
|
|
|
332
330
|
export type InlineGetDictUserDefined = {
|
|
@@ -336,6 +334,7 @@ export type InlineGetDictUserDefined = {
|
|
|
336
334
|
_source?: Record<string, any>;
|
|
337
335
|
fields?: Record<string, Record<string, any>>;
|
|
338
336
|
found: boolean;
|
|
337
|
+
[key: string]: any | Record<string, any>;
|
|
339
338
|
}
|
|
340
339
|
|
|
341
340
|
export type InlineScript = string | (ScriptBase & {
|
|
@@ -371,13 +370,30 @@ export type MergesStats = {
|
|
|
371
370
|
total_time?: Duration;
|
|
372
371
|
total_time_in_millis: DurationValueUnitMillis;
|
|
373
372
|
unreferenced_file_cleanups_performed?: number;
|
|
373
|
+
warmer?: MergesWarmerStats;
|
|
374
|
+
}
|
|
375
|
+
|
|
376
|
+
export type MergesWarmerStats = {
|
|
377
|
+
ongoing_count?: number;
|
|
378
|
+
total_bytes_received?: ByteCount;
|
|
379
|
+
total_bytes_sent?: ByteCount;
|
|
380
|
+
total_failure_count?: number;
|
|
381
|
+
total_invocations_count?: number;
|
|
382
|
+
total_receive_time?: Duration;
|
|
383
|
+
total_receive_time_millis?: DurationValueUnitMillis;
|
|
384
|
+
total_received_size?: HumanReadableByteCount;
|
|
385
|
+
total_send_time?: Duration;
|
|
386
|
+
total_send_time_millis?: DurationValueUnitMillis;
|
|
387
|
+
total_sent_size?: HumanReadableByteCount;
|
|
388
|
+
total_time?: Duration;
|
|
389
|
+
total_time_millis?: DurationValueUnitMillis;
|
|
374
390
|
}
|
|
375
391
|
|
|
376
392
|
export type Metadata = Record<string, any>
|
|
377
393
|
|
|
378
394
|
export type MinimumShouldMatch = number | string
|
|
379
395
|
|
|
380
|
-
export type MultiTermQueryRewrite =
|
|
396
|
+
export type MultiTermQueryRewrite = string
|
|
381
397
|
|
|
382
398
|
export type Name = string
|
|
383
399
|
|
|
@@ -406,7 +422,7 @@ export type NodeIds = NodeId | NodeId[]
|
|
|
406
422
|
|
|
407
423
|
export type NodeName = string
|
|
408
424
|
|
|
409
|
-
export type NodeRole = 'client' | 'coordinating_only' | 'data' | 'data_cold' | 'data_content' | 'data_frozen' | 'data_hot' | 'data_warm' | 'ingest' | 'ml' | 'remote_cluster_client' | 'transform' | 'voting_only' | 'master' | 'cluster_manager'
|
|
425
|
+
export type NodeRole = 'client' | 'coordinating_only' | 'data' | 'data_cold' | 'data_content' | 'data_frozen' | 'data_hot' | 'data_warm' | 'ingest' | 'ml' | 'remote_cluster_client' | 'transform' | 'voting_only' | 'master' | 'cluster_manager' | 'search' | 'warm'
|
|
410
426
|
|
|
411
427
|
export type NodeRoles = NodeRole[]
|
|
412
428
|
|
|
@@ -417,6 +433,7 @@ export type NodeShard = {
|
|
|
417
433
|
primary: boolean;
|
|
418
434
|
recovery_source?: Record<string, Id>;
|
|
419
435
|
relocating_node?: NodeId | undefined;
|
|
436
|
+
searchOnly?: boolean;
|
|
420
437
|
shard: number;
|
|
421
438
|
state: Indices_Stats.ShardRoutingState;
|
|
422
439
|
unassigned_info?: Cluster_AllocationExplain.UnassignedInformation;
|
|
@@ -451,12 +468,12 @@ export type PercentageNumber = number
|
|
|
451
468
|
export type PercentageString = string
|
|
452
469
|
|
|
453
470
|
export type PhaseTook = {
|
|
454
|
-
can_match:
|
|
455
|
-
dfs_pre_query:
|
|
456
|
-
dfs_query:
|
|
457
|
-
expand:
|
|
458
|
-
fetch:
|
|
459
|
-
query:
|
|
471
|
+
can_match: number;
|
|
472
|
+
dfs_pre_query: number;
|
|
473
|
+
dfs_query: number;
|
|
474
|
+
expand: number;
|
|
475
|
+
fetch: number;
|
|
476
|
+
query: number;
|
|
460
477
|
}
|
|
461
478
|
|
|
462
479
|
export type PipelineName = string
|
|
@@ -486,12 +503,6 @@ export type QueryCacheStats = {
|
|
|
486
503
|
total_count: number;
|
|
487
504
|
}
|
|
488
505
|
|
|
489
|
-
export type RankBase = Record<string, any>
|
|
490
|
-
|
|
491
|
-
export type RankContainer = {
|
|
492
|
-
rrf?: RrfRank;
|
|
493
|
-
}
|
|
494
|
-
|
|
495
506
|
export type RecoveryStats = {
|
|
496
507
|
current_as_source: number;
|
|
497
508
|
current_as_target: number;
|
|
@@ -606,8 +617,6 @@ export type ResourceStats = {
|
|
|
606
617
|
total: ResourceStat;
|
|
607
618
|
}
|
|
608
619
|
|
|
609
|
-
export type ResourceType = 'index_or_alias'
|
|
610
|
-
|
|
611
620
|
export type Result = 'created' | 'deleted' | 'noop' | 'not_found' | 'updated'
|
|
612
621
|
|
|
613
622
|
export type Retries = {
|
|
@@ -619,11 +628,6 @@ export type Routing = string
|
|
|
619
628
|
|
|
620
629
|
export type RoutingInQueryString = StringOrStringArray
|
|
621
630
|
|
|
622
|
-
export type RrfRank = RankBase & {
|
|
623
|
-
rank_constant?: number;
|
|
624
|
-
window_size?: number;
|
|
625
|
-
}
|
|
626
|
-
|
|
627
631
|
export type ScoreSort = {
|
|
628
632
|
order?: SortOrder;
|
|
629
633
|
}
|
|
@@ -680,6 +684,7 @@ export type SearchStats = {
|
|
|
680
684
|
point_in_time_time_in_millis?: DurationValueUnitMillis;
|
|
681
685
|
point_in_time_total?: number;
|
|
682
686
|
query_current: number;
|
|
687
|
+
query_failed?: number;
|
|
683
688
|
query_time?: Duration;
|
|
684
689
|
query_time_in_millis: DurationValueUnitMillis;
|
|
685
690
|
query_total: number;
|
|
@@ -689,6 +694,11 @@ export type SearchStats = {
|
|
|
689
694
|
scroll_time_in_millis: DurationValueUnitMillis;
|
|
690
695
|
scroll_total: number;
|
|
691
696
|
search_idle_reactivate_count_total?: number;
|
|
697
|
+
startree_query_current?: number;
|
|
698
|
+
startree_query_failed?: number;
|
|
699
|
+
startree_query_time?: Duration;
|
|
700
|
+
startree_query_time_in_millis?: DurationValueUnitMillis;
|
|
701
|
+
startree_query_total?: number;
|
|
692
702
|
suggest_current: number;
|
|
693
703
|
suggest_time?: Duration;
|
|
694
704
|
suggest_time_in_millis: DurationValueUnitMillis;
|
|
@@ -741,18 +751,33 @@ export type SequenceNumber = number
|
|
|
741
751
|
export type ShardFailure = {
|
|
742
752
|
index?: IndexName;
|
|
743
753
|
node?: string;
|
|
754
|
+
primary: boolean;
|
|
744
755
|
reason: ErrorCause;
|
|
745
756
|
shard: number;
|
|
746
757
|
status?: string;
|
|
747
758
|
}
|
|
748
759
|
|
|
760
|
+
export type ShardInfo = {
|
|
761
|
+
failed: uint;
|
|
762
|
+
failures?: ShardFailure[];
|
|
763
|
+
successful: uint;
|
|
764
|
+
total: uint;
|
|
765
|
+
}
|
|
766
|
+
|
|
767
|
+
export type ShardSearchFailure = {
|
|
768
|
+
index?: string;
|
|
769
|
+
node?: string;
|
|
770
|
+
reason: ErrorCause;
|
|
771
|
+
shard: number;
|
|
772
|
+
}
|
|
773
|
+
|
|
749
774
|
export type ShardsOperationResponseBase = {
|
|
750
775
|
_shards: ShardStatistics;
|
|
751
776
|
}
|
|
752
777
|
|
|
753
778
|
export type ShardStatistics = {
|
|
754
779
|
failed: uint;
|
|
755
|
-
failures?:
|
|
780
|
+
failures?: ShardSearchFailure[];
|
|
756
781
|
skipped?: uint;
|
|
757
782
|
successful: uint;
|
|
758
783
|
total: uint;
|
|
@@ -770,16 +795,17 @@ export type Slices = number | SlicesCalculation
|
|
|
770
795
|
|
|
771
796
|
export type SlicesCalculation = 'auto'
|
|
772
797
|
|
|
773
|
-
export type Sort =
|
|
798
|
+
export type Sort = SortCombinations | SortCombinations[]
|
|
799
|
+
|
|
800
|
+
export type SortCombinations = Field | FieldWithDirection | FieldWithOrder | SortOptions
|
|
774
801
|
|
|
775
802
|
export type SortMode = 'avg' | 'max' | 'median' | 'min' | 'sum'
|
|
776
803
|
|
|
777
|
-
export type SortOptions =
|
|
778
|
-
_doc?: ScoreSort;
|
|
804
|
+
export type SortOptions = {
|
|
779
805
|
_geo_distance?: GeoDistanceSort;
|
|
780
806
|
_score?: ScoreSort;
|
|
781
807
|
_script?: ScriptSort;
|
|
782
|
-
}
|
|
808
|
+
}
|
|
783
809
|
|
|
784
810
|
export type SortOrder = 'asc' | 'desc'
|
|
785
811
|
|
|
@@ -887,13 +913,13 @@ export type VersionNumber = number
|
|
|
887
913
|
|
|
888
914
|
export type VersionString = string
|
|
889
915
|
|
|
890
|
-
export type VersionType = 'external' | 'external_gte' | '
|
|
916
|
+
export type VersionType = 'external' | 'external_gte' | 'internal'
|
|
891
917
|
|
|
892
918
|
export type Void = Record<string, any>
|
|
893
919
|
|
|
894
|
-
export type WaitForActiveShardOptions = 'all' |
|
|
920
|
+
export type WaitForActiveShardOptions = 'all' | undefined
|
|
895
921
|
|
|
896
|
-
export type WaitForActiveShards =
|
|
922
|
+
export type WaitForActiveShards = StringifiedInteger | WaitForActiveShardOptions
|
|
897
923
|
|
|
898
924
|
export type WaitForEvents = 'immediate' | 'urgent' | 'high' | 'normal' | 'low' | 'languid'
|
|
899
925
|
|
|
@@ -119,7 +119,7 @@ export type DoubleRangeProperty = RangePropertyBase & {
|
|
|
119
119
|
type: 'double_range';
|
|
120
120
|
}
|
|
121
121
|
|
|
122
|
-
export type DynamicMapping = 'false' | 'strict' | 'strict_allow_templates' | 'true'
|
|
122
|
+
export type DynamicMapping = 'false' | 'strict' | 'strict_allow_templates' | 'true' | boolean
|
|
123
123
|
|
|
124
124
|
export type DynamicTemplate = {
|
|
125
125
|
mapping?: Property;
|
|
@@ -145,7 +145,7 @@ export type FieldNamesField = {
|
|
|
145
145
|
enabled: boolean;
|
|
146
146
|
}
|
|
147
147
|
|
|
148
|
-
export type FieldType = 'aggregate_metric_double' | 'alias' | 'binary' | 'boolean' | 'byte' | 'completion' | 'constant_keyword' | 'date' | 'date_nanos' | 'date_range' | 'double' | 'double_range' | 'flat_object' | 'float' | 'float_range' | 'geo_point' | 'geo_shape' | 'half_float' | 'histogram' | 'icu_collation_keyword' | 'integer' | 'integer_range' | 'ip' | 'ip_range' | 'join' | 'keyword' | 'knn_vector' | 'long' | 'long_range' | 'match_only_text' | 'murmur3' | 'nested' | 'object' | 'percolator' | 'rank_feature' | 'rank_features' | 'scaled_float' | 'search_as_you_type' | 'short' | 'text' | 'token_count' | 'unsigned_long' | 'version' | 'wildcard' | 'xy_point' | 'xy_shape'
|
|
148
|
+
export type FieldType = 'aggregate_metric_double' | 'alias' | 'binary' | 'boolean' | 'byte' | 'completion' | 'constant_keyword' | 'date' | 'date_nanos' | 'date_range' | 'double' | 'double_range' | 'flat_object' | 'float' | 'float_range' | 'geo_point' | 'geo_shape' | 'half_float' | 'histogram' | 'icu_collation_keyword' | 'integer' | 'integer_range' | 'ip' | 'ip_range' | 'join' | 'keyword' | 'knn_vector' | 'long' | 'long_range' | 'match_only_text' | 'murmur3' | 'nested' | 'object' | 'percolator' | 'rank_feature' | 'rank_features' | 'scaled_float' | 'search_as_you_type' | 'semantic' | 'short' | 'text' | 'token_count' | 'unsigned_long' | 'version' | 'wildcard' | 'xy_point' | 'xy_shape'
|
|
149
149
|
|
|
150
150
|
export type FlatObjectProperty = PropertyBase & {
|
|
151
151
|
aggregatable?: boolean;
|
|
@@ -286,6 +286,7 @@ export type LongRangeProperty = RangePropertyBase & {
|
|
|
286
286
|
export type MatchOnlyTextProperty = {
|
|
287
287
|
copy_to?: Common.Fields;
|
|
288
288
|
fields?: Record<string, Property>;
|
|
289
|
+
index?: boolean;
|
|
289
290
|
meta?: Record<string, string>;
|
|
290
291
|
type: 'match_only_text';
|
|
291
292
|
}
|
|
@@ -319,7 +320,7 @@ export type PercolatorProperty = PropertyBase & {
|
|
|
319
320
|
type: 'percolator';
|
|
320
321
|
}
|
|
321
322
|
|
|
322
|
-
export type Property = BinaryProperty | BooleanProperty | JoinProperty | KeywordProperty | MatchOnlyTextProperty | PercolatorProperty | RankFeatureProperty | RankFeaturesProperty | SearchAsYouTypeProperty | TextProperty | VersionProperty | WildcardProperty | DateNanosProperty | DateProperty | AggregateMetricDoubleProperty | FlatObjectProperty | NestedProperty | ObjectProperty | CompletionProperty | ConstantKeywordProperty | FieldAliasProperty | HistogramProperty | IpProperty | Murmur3HashProperty | TokenCountProperty | GeoPointProperty | GeoShapeProperty | XyPointProperty | XyShapeProperty | ByteNumberProperty | DoubleNumberProperty | FloatNumberProperty | HalfFloatNumberProperty | IntegerNumberProperty | LongNumberProperty | ScaledFloatNumberProperty | ShortNumberProperty | UnsignedLongNumberProperty | DateRangeProperty | DoubleRangeProperty | FloatRangeProperty | IntegerRangeProperty | IpRangeProperty | LongRangeProperty | KnnVectorProperty | IcuCollationKeywordProperty
|
|
323
|
+
export type Property = BinaryProperty | BooleanProperty | JoinProperty | KeywordProperty | MatchOnlyTextProperty | PercolatorProperty | RankFeatureProperty | RankFeaturesProperty | SearchAsYouTypeProperty | TextProperty | VersionProperty | WildcardProperty | DateNanosProperty | DateProperty | AggregateMetricDoubleProperty | FlatObjectProperty | NestedProperty | ObjectProperty | CompletionProperty | ConstantKeywordProperty | FieldAliasProperty | HistogramProperty | IpProperty | Murmur3HashProperty | TokenCountProperty | GeoPointProperty | GeoShapeProperty | XyPointProperty | XyShapeProperty | ByteNumberProperty | DoubleNumberProperty | FloatNumberProperty | HalfFloatNumberProperty | IntegerNumberProperty | LongNumberProperty | ScaledFloatNumberProperty | SemanticProperty | ShortNumberProperty | UnsignedLongNumberProperty | DateRangeProperty | DoubleRangeProperty | FloatRangeProperty | IntegerRangeProperty | IpRangeProperty | LongRangeProperty | KnnVectorProperty | IcuCollationKeywordProperty
|
|
323
324
|
|
|
324
325
|
export type PropertyBase = {
|
|
325
326
|
dynamic?: DynamicMapping;
|
|
@@ -366,6 +367,37 @@ export type SearchAsYouTypeProperty = CorePropertyBase & {
|
|
|
366
367
|
type: 'search_as_you_type';
|
|
367
368
|
}
|
|
368
369
|
|
|
370
|
+
export type SemanticChunkingStrategy = {
|
|
371
|
+
algorithm: string;
|
|
372
|
+
parameters?: {
|
|
373
|
+
};
|
|
374
|
+
}
|
|
375
|
+
|
|
376
|
+
export type SemanticDenseEmbeddingConfig = {
|
|
377
|
+
compression_level?: string;
|
|
378
|
+
data_type?: string;
|
|
379
|
+
method?: KnnVectorMethod;
|
|
380
|
+
mode?: string;
|
|
381
|
+
}
|
|
382
|
+
|
|
383
|
+
export type SemanticProperty = {
|
|
384
|
+
chunking?: boolean | SemanticChunkingStrategy[];
|
|
385
|
+
dense_embedding_config?: SemanticDenseEmbeddingConfig;
|
|
386
|
+
model_id: string;
|
|
387
|
+
raw_field_type?: string;
|
|
388
|
+
search_model_id?: string;
|
|
389
|
+
semantic_field_search_analyzer?: string;
|
|
390
|
+
semantic_info_field_name?: string;
|
|
391
|
+
skip_existing_embedding?: boolean;
|
|
392
|
+
sparse_encoding_config?: SemanticSparseEncodingConfig;
|
|
393
|
+
type: 'semantic';
|
|
394
|
+
}
|
|
395
|
+
|
|
396
|
+
export type SemanticSparseEncodingConfig = {
|
|
397
|
+
prune_ratio?: number;
|
|
398
|
+
prune_type?: string;
|
|
399
|
+
}
|
|
400
|
+
|
|
369
401
|
export type ShortNumberProperty = NumberPropertyBase & {
|
|
370
402
|
null_value?: Common.short;
|
|
371
403
|
type: 'short';
|
|
@@ -18,6 +18,12 @@ import * as Common from './_common'
|
|
|
18
18
|
import * as Common_Analysis from './_common.analysis'
|
|
19
19
|
import * as Core_Search from './_core.search'
|
|
20
20
|
|
|
21
|
+
export type AgenticQuery = QueryBase & {
|
|
22
|
+
memory_id?: string;
|
|
23
|
+
query_fields?: Common.Field[];
|
|
24
|
+
query_text: string;
|
|
25
|
+
}
|
|
26
|
+
|
|
21
27
|
export type BoolQuery = QueryBase & {
|
|
22
28
|
adjust_pure_negative?: boolean;
|
|
23
29
|
filter?: QueryContainer | QueryContainer[];
|
|
@@ -65,14 +71,16 @@ export type DateDecayPlacement = {
|
|
|
65
71
|
decay?: number;
|
|
66
72
|
offset?: Common.Duration;
|
|
67
73
|
origin?: Common.DateTime;
|
|
68
|
-
scale
|
|
74
|
+
scale: Common.Duration;
|
|
69
75
|
}
|
|
70
76
|
|
|
71
|
-
export type
|
|
77
|
+
export type DateRangeQuery = RangeQueryBase & {
|
|
72
78
|
format?: Common.DateFormat;
|
|
73
79
|
from?: Common.DateMath | undefined;
|
|
74
80
|
gt?: Common.DateMath;
|
|
75
81
|
gte?: Common.DateMath;
|
|
82
|
+
include_lower?: boolean;
|
|
83
|
+
include_upper?: boolean;
|
|
76
84
|
lt?: Common.DateMath;
|
|
77
85
|
lte?: Common.DateMath;
|
|
78
86
|
time_zone?: Common.TimeZone;
|
|
@@ -92,11 +100,11 @@ export type DisMaxQuery = QueryBase & {
|
|
|
92
100
|
tie_breaker?: number;
|
|
93
101
|
}
|
|
94
102
|
|
|
95
|
-
export type DistanceFeatureQuery = QueryBase &
|
|
103
|
+
export type DistanceFeatureQuery = (QueryBase & {
|
|
96
104
|
field: Common.Field;
|
|
97
105
|
origin: Common.GeoLocation;
|
|
98
106
|
pivot: Common.Distance;
|
|
99
|
-
} | {
|
|
107
|
+
}) | (QueryBase & {
|
|
100
108
|
field: Common.Field;
|
|
101
109
|
origin: Common.DateMath;
|
|
102
110
|
pivot: Common.Duration;
|
|
@@ -109,7 +117,6 @@ export type ExistsQuery = QueryBase & {
|
|
|
109
117
|
export type FieldAndFormat = Common.Field | {
|
|
110
118
|
field: Common.Field;
|
|
111
119
|
format?: string;
|
|
112
|
-
include_unmapped?: boolean;
|
|
113
120
|
}
|
|
114
121
|
|
|
115
122
|
export type FieldLookup = {
|
|
@@ -171,14 +178,15 @@ export type GeoBoundingBoxQuery = QueryBase & {
|
|
|
171
178
|
export type GeoDecayPlacement = {
|
|
172
179
|
decay?: number;
|
|
173
180
|
offset?: Common.Distance;
|
|
174
|
-
origin
|
|
175
|
-
scale
|
|
181
|
+
origin: Common.GeoLocation;
|
|
182
|
+
scale: Common.Distance;
|
|
176
183
|
}
|
|
177
184
|
|
|
178
185
|
export type GeoDistanceQuery = QueryBase & {
|
|
179
186
|
distance: Common.Distance;
|
|
180
187
|
distance_type?: Common.GeoDistanceType;
|
|
181
188
|
ignore_unmapped?: IgnoreUnmapped;
|
|
189
|
+
unit?: Common.DistanceUnit;
|
|
182
190
|
validation_method?: GeoValidationMethod;
|
|
183
191
|
[key: string]: any | Common.GeoLocation;
|
|
184
192
|
}
|
|
@@ -232,6 +240,7 @@ export type HasParentQuery = QueryBase & {
|
|
|
232
240
|
}
|
|
233
241
|
|
|
234
242
|
export type HybridQuery = QueryBase & {
|
|
243
|
+
filter?: QueryContainer;
|
|
235
244
|
pagination_depth?: number;
|
|
236
245
|
queries?: QueryContainer[];
|
|
237
246
|
}
|
|
@@ -450,10 +459,20 @@ export type NeuralQuery = QueryBase & {
|
|
|
450
459
|
query_text?: string;
|
|
451
460
|
}
|
|
452
461
|
|
|
453
|
-
export type
|
|
462
|
+
export type NeuralSparseQuery = QueryBase & {
|
|
463
|
+
analyzer?: string;
|
|
464
|
+
max_token_score?: number;
|
|
465
|
+
model_id?: string;
|
|
466
|
+
query_text?: string;
|
|
467
|
+
query_tokens?: Record<string, number>;
|
|
468
|
+
}
|
|
469
|
+
|
|
470
|
+
export type NumberRangeQuery = RangeQueryBase & {
|
|
454
471
|
from?: number | string | undefined;
|
|
455
472
|
gt?: number;
|
|
456
473
|
gte?: number;
|
|
474
|
+
include_lower?: boolean;
|
|
475
|
+
include_upper?: boolean;
|
|
457
476
|
lt?: number;
|
|
458
477
|
lte?: number;
|
|
459
478
|
to?: number | string | undefined;
|
|
@@ -462,8 +481,8 @@ export type NumberRangeQueryParameters = {
|
|
|
462
481
|
export type NumericDecayPlacement = {
|
|
463
482
|
decay?: number;
|
|
464
483
|
offset?: number;
|
|
465
|
-
origin
|
|
466
|
-
scale
|
|
484
|
+
origin: number;
|
|
485
|
+
scale: number;
|
|
467
486
|
}
|
|
468
487
|
|
|
469
488
|
export type Operator = 'and' | 'AND' | 'or' | 'OR'
|
|
@@ -486,13 +505,6 @@ export type PercolateQuery = QueryBase & {
|
|
|
486
505
|
version?: Common.VersionNumber;
|
|
487
506
|
}
|
|
488
507
|
|
|
489
|
-
export type PinnedDoc = {
|
|
490
|
-
_id: Common.Id;
|
|
491
|
-
_index: Common.IndexName;
|
|
492
|
-
}
|
|
493
|
-
|
|
494
|
-
export type PinnedQuery = QueryBase & Record<string, any>
|
|
495
|
-
|
|
496
508
|
export type PrefixQuery = string | (QueryBase & {
|
|
497
509
|
case_insensitive?: boolean;
|
|
498
510
|
rewrite?: Common.MultiTermQueryRewrite;
|
|
@@ -505,6 +517,7 @@ export type QueryBase = {
|
|
|
505
517
|
}
|
|
506
518
|
|
|
507
519
|
export type QueryContainer = {
|
|
520
|
+
agentic?: AgenticQuery;
|
|
508
521
|
bool?: BoolQuery;
|
|
509
522
|
boosting?: BoostingQuery;
|
|
510
523
|
combined_fields?: CombinedFieldsQuery;
|
|
@@ -536,9 +549,9 @@ export type QueryContainer = {
|
|
|
536
549
|
multi_match?: MultiMatchQuery;
|
|
537
550
|
nested?: NestedQuery;
|
|
538
551
|
neural?: Record<string, NeuralQuery>;
|
|
552
|
+
neural_sparse?: Record<string, NeuralSparseQuery>;
|
|
539
553
|
parent_id?: ParentIdQuery;
|
|
540
554
|
percolate?: PercolateQuery;
|
|
541
|
-
pinned?: PinnedQuery;
|
|
542
555
|
prefix?: Record<string, PrefixQuery>;
|
|
543
556
|
query_string?: QueryStringQuery;
|
|
544
557
|
range?: Record<string, RangeQuery>;
|
|
@@ -547,6 +560,7 @@ export type QueryContainer = {
|
|
|
547
560
|
script?: ScriptQuery;
|
|
548
561
|
script_score?: ScriptScoreQuery;
|
|
549
562
|
simple_query_string?: SimpleQueryStringQuery;
|
|
563
|
+
sltr?: StoredLtrQuery;
|
|
550
564
|
span_containing?: SpanContainingQuery;
|
|
551
565
|
span_first?: SpanFirstQuery;
|
|
552
566
|
span_multi?: SpanMultiTermQuery;
|
|
@@ -555,6 +569,7 @@ export type QueryContainer = {
|
|
|
555
569
|
span_or?: SpanOrQuery;
|
|
556
570
|
span_term?: Record<string, SpanTermQuery>;
|
|
557
571
|
span_within?: SpanWithinQuery;
|
|
572
|
+
template?: Record<string, any>;
|
|
558
573
|
term?: Record<string, TermQuery>;
|
|
559
574
|
terms?: TermsQuery;
|
|
560
575
|
terms_set?: Record<string, TermsSetQuery>;
|
|
@@ -599,7 +614,7 @@ export type RandomScoreFunction = {
|
|
|
599
614
|
seed?: number | string;
|
|
600
615
|
}
|
|
601
616
|
|
|
602
|
-
export type RangeQuery =
|
|
617
|
+
export type RangeQuery = NumberRangeQuery | DateRangeQuery
|
|
603
618
|
|
|
604
619
|
export type RangeQueryBase = QueryBase & {
|
|
605
620
|
relation?: RangeRelation;
|
|
@@ -739,26 +754,39 @@ export type SpanWithinQuery = QueryBase & {
|
|
|
739
754
|
little: SpanQuery;
|
|
740
755
|
}
|
|
741
756
|
|
|
757
|
+
export type StoredLtrQuery = {
|
|
758
|
+
_name?: string;
|
|
759
|
+
active_features?: string[];
|
|
760
|
+
boost?: number;
|
|
761
|
+
cache?: boolean;
|
|
762
|
+
featureset?: string;
|
|
763
|
+
model?: string;
|
|
764
|
+
params: Record<string, any>;
|
|
765
|
+
store?: string;
|
|
766
|
+
}
|
|
767
|
+
|
|
742
768
|
export type TermQuery = Common.FieldValue | (QueryBase & {
|
|
743
769
|
case_insensitive?: boolean;
|
|
744
770
|
value: Common.FieldValue;
|
|
745
771
|
})
|
|
746
772
|
|
|
747
773
|
export type TermsLookup = {
|
|
748
|
-
id
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
routing?: Common.Routing;
|
|
774
|
+
id: Common.Id;
|
|
775
|
+
} | {
|
|
776
|
+
query: QueryContainer;
|
|
752
777
|
}
|
|
753
778
|
|
|
754
|
-
export type TermsQuery =
|
|
755
|
-
_name?:
|
|
756
|
-
boost?:
|
|
779
|
+
export type TermsQuery = {
|
|
780
|
+
_name?: string;
|
|
781
|
+
boost?: number;
|
|
782
|
+
value_type?: TermsQueryValueType;
|
|
757
783
|
[key: string]: any | TermsQueryField;
|
|
758
784
|
}
|
|
759
785
|
|
|
760
786
|
export type TermsQueryField = Common.FieldValue[] | TermsLookup
|
|
761
787
|
|
|
788
|
+
export type TermsQueryValueType = 'bitmap' | 'default'
|
|
789
|
+
|
|
762
790
|
export type TermsSetQuery = QueryBase & {
|
|
763
791
|
minimum_should_match_field?: Common.Field;
|
|
764
792
|
minimum_should_match_script?: Common.Script;
|