@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
package/api/OpenSearchApi.js
CHANGED
|
@@ -19,182 +19,249 @@
|
|
|
19
19
|
const { kConfigErr } = require('./utils')
|
|
20
20
|
const kApiModules = Symbol('api modules')
|
|
21
21
|
|
|
22
|
+
// Namespace constructors and root function modules are required once at
|
|
23
|
+
// module load time (not per Client instance) to avoid paying `require()`
|
|
24
|
+
// resolution cost (and any installed require-hook overhead, e.g. APM/OTel
|
|
25
|
+
// auto-instrumentation) on every `new Client()` / `client.child()` call.
|
|
26
|
+
const asynchronousSearchCtor = require('./asynchronousSearch/_api');
|
|
27
|
+
const catCtor = require('./cat/_api');
|
|
28
|
+
const clusterCtor = require('./cluster/_api');
|
|
29
|
+
const danglingIndicesCtor = require('./danglingIndices/_api');
|
|
30
|
+
const flowFrameworkCtor = require('./flowFramework/_api');
|
|
31
|
+
const geospatialCtor = require('./geospatial/_api');
|
|
32
|
+
const httpCtor = require('./http/_api');
|
|
33
|
+
const indicesCtor = require('./indices/_api');
|
|
34
|
+
const ingestCtor = require('./ingest/_api');
|
|
35
|
+
const ingestionCtor = require('./ingestion/_api');
|
|
36
|
+
const insightsCtor = require('./insights/_api');
|
|
37
|
+
const ismCtor = require('./ism/_api');
|
|
38
|
+
const knnCtor = require('./knn/_api');
|
|
39
|
+
const listCtor = require('./list/_api');
|
|
40
|
+
const ltrCtor = require('./ltr/_api');
|
|
41
|
+
const mlCtor = require('./ml/_api');
|
|
42
|
+
const neuralCtor = require('./neural/_api');
|
|
43
|
+
const nodesCtor = require('./nodes/_api');
|
|
44
|
+
const notificationsCtor = require('./notifications/_api');
|
|
45
|
+
const observabilityCtor = require('./observability/_api');
|
|
46
|
+
const pplCtor = require('./ppl/_api');
|
|
47
|
+
const queryCtor = require('./query/_api');
|
|
48
|
+
const remoteStoreCtor = require('./remoteStore/_api');
|
|
49
|
+
const replicationCtor = require('./replication/_api');
|
|
50
|
+
const rollupsCtor = require('./rollups/_api');
|
|
51
|
+
const searchPipelineCtor = require('./searchPipeline/_api');
|
|
52
|
+
const searchRelevanceCtor = require('./searchRelevance/_api');
|
|
53
|
+
const securityAnalyticsCtor = require('./securityAnalytics/_api');
|
|
54
|
+
const securityCtor = require('./security/_api');
|
|
55
|
+
const smCtor = require('./sm/_api');
|
|
56
|
+
const snapshotCtor = require('./snapshot/_api');
|
|
57
|
+
const sqlCtor = require('./sql/_api');
|
|
58
|
+
const tasksCtor = require('./tasks/_api');
|
|
59
|
+
const transformsCtor = require('./transforms/_api');
|
|
60
|
+
const ubiCtor = require('./ubi/_api');
|
|
61
|
+
const wlmCtor = require('./wlm/_api');
|
|
62
|
+
|
|
63
|
+
const bulkFn = require('./_core/bulk');
|
|
64
|
+
const bulkStreamFn = require('./_core/bulkStream');
|
|
65
|
+
const clearScrollFn = require('./_core/clearScroll');
|
|
66
|
+
const countFn = require('./_core/count');
|
|
67
|
+
const createFn = require('./_core/create');
|
|
68
|
+
const createPitFn = require('./_core/createPit');
|
|
69
|
+
const deleteFn = require('./_core/delete');
|
|
70
|
+
const deleteAllPitsFn = require('./_core/deleteAllPits');
|
|
71
|
+
const deleteByQueryFn = require('./_core/deleteByQuery');
|
|
72
|
+
const deleteByQueryRethrottleFn = require('./_core/deleteByQueryRethrottle');
|
|
73
|
+
const deletePitFn = require('./_core/deletePit');
|
|
74
|
+
const deleteScriptFn = require('./_core/deleteScript');
|
|
75
|
+
const existsFn = require('./_core/exists');
|
|
76
|
+
const existsSourceFn = require('./_core/existsSource');
|
|
77
|
+
const explainFn = require('./_core/explain');
|
|
78
|
+
const fieldCapsFn = require('./_core/fieldCaps');
|
|
79
|
+
const getFn = require('./_core/get');
|
|
80
|
+
const getAllPitsFn = require('./_core/getAllPits');
|
|
81
|
+
const getScriptFn = require('./_core/getScript');
|
|
82
|
+
const getScriptContextFn = require('./_core/getScriptContext');
|
|
83
|
+
const getScriptLanguagesFn = require('./_core/getScriptLanguages');
|
|
84
|
+
const getSourceFn = require('./_core/getSource');
|
|
85
|
+
const indexFn = require('./_core/index');
|
|
86
|
+
const infoFn = require('./_core/info');
|
|
87
|
+
const mgetFn = require('./_core/mget');
|
|
88
|
+
const msearchFn = require('./_core/msearch');
|
|
89
|
+
const msearchTemplateFn = require('./_core/msearchTemplate');
|
|
90
|
+
const mtermvectorsFn = require('./_core/mtermvectors');
|
|
91
|
+
const pingFn = require('./_core/ping');
|
|
92
|
+
const putScriptFn = require('./_core/putScript');
|
|
93
|
+
const rankEvalFn = require('./_core/rankEval');
|
|
94
|
+
const reindexFn = require('./_core/reindex');
|
|
95
|
+
const reindexRethrottleFn = require('./_core/reindexRethrottle');
|
|
96
|
+
const renderSearchTemplateFn = require('./_core/renderSearchTemplate');
|
|
97
|
+
const scriptsPainlessExecuteFn = require('./_core/scriptsPainlessExecute');
|
|
98
|
+
const scrollFn = require('./_core/scroll');
|
|
99
|
+
const searchFn = require('./_core/search');
|
|
100
|
+
const searchShardsFn = require('./_core/searchShards');
|
|
101
|
+
const searchTemplateFn = require('./_core/searchTemplate');
|
|
102
|
+
const termvectorsFn = require('./_core/termvectors');
|
|
103
|
+
const updateFn = require('./_core/update');
|
|
104
|
+
const updateByQueryFn = require('./_core/updateByQuery');
|
|
105
|
+
const updateByQueryRethrottleFn = require('./_core/updateByQueryRethrottle');
|
|
106
|
+
|
|
22
107
|
class OpenSearchAPI {
|
|
23
108
|
constructor (opts) {
|
|
24
109
|
this[kConfigErr] = opts.ConfigurationError
|
|
25
|
-
this[kApiModules] = {
|
|
26
|
-
asynchronousSearch: new(require('./asynchronousSearch/_api'))(this),
|
|
27
|
-
cat: new(require('./cat/_api'))(this),
|
|
28
|
-
cluster: new(require('./cluster/_api'))(this),
|
|
29
|
-
danglingIndices: new(require('./danglingIndices/_api'))(this),
|
|
30
|
-
flowFramework: new(require('./flowFramework/_api'))(this),
|
|
31
|
-
http: new(require('./http/_api'))(this),
|
|
32
|
-
indices: new(require('./indices/_api'))(this),
|
|
33
|
-
ingest: new(require('./ingest/_api'))(this),
|
|
34
|
-
insights: new(require('./insights/_api'))(this),
|
|
35
|
-
ism: new(require('./ism/_api'))(this),
|
|
36
|
-
knn: new(require('./knn/_api'))(this),
|
|
37
|
-
list: new(require('./list/_api'))(this),
|
|
38
|
-
ltr: new(require('./ltr/_api'))(this),
|
|
39
|
-
ml: new(require('./ml/_api'))(this),
|
|
40
|
-
nodes: new(require('./nodes/_api'))(this),
|
|
41
|
-
notifications: new(require('./notifications/_api'))(this),
|
|
42
|
-
observability: new(require('./observability/_api'))(this),
|
|
43
|
-
ppl: new(require('./ppl/_api'))(this),
|
|
44
|
-
query: new(require('./query/_api'))(this),
|
|
45
|
-
remoteStore: new(require('./remoteStore/_api'))(this),
|
|
46
|
-
replication: new(require('./replication/_api'))(this),
|
|
47
|
-
rollups: new(require('./rollups/_api'))(this),
|
|
48
|
-
searchPipeline: new(require('./searchPipeline/_api'))(this),
|
|
49
|
-
security: new(require('./security/_api'))(this),
|
|
50
|
-
sm: new(require('./sm/_api'))(this),
|
|
51
|
-
snapshot: new(require('./snapshot/_api'))(this),
|
|
52
|
-
sql: new(require('./sql/_api'))(this),
|
|
53
|
-
tasks: new(require('./tasks/_api'))(this),
|
|
54
|
-
transforms: new(require('./transforms/_api'))(this),
|
|
55
|
-
wlm: new(require('./wlm/_api'))(this),
|
|
56
|
-
}
|
|
110
|
+
this[kApiModules] = {}
|
|
57
111
|
|
|
58
112
|
// Setup Root API Functions
|
|
59
113
|
/** @namespace API-Core */
|
|
60
|
-
this.bulk =
|
|
61
|
-
this.bulkStream =
|
|
62
|
-
this.clearScroll =
|
|
63
|
-
this.count =
|
|
64
|
-
this.create =
|
|
65
|
-
this.createPit =
|
|
66
|
-
this.delete =
|
|
67
|
-
this.deleteAllPits =
|
|
68
|
-
this.deleteByQuery =
|
|
69
|
-
this.deleteByQueryRethrottle =
|
|
70
|
-
this.deletePit =
|
|
71
|
-
this.deleteScript =
|
|
72
|
-
this.exists =
|
|
73
|
-
this.existsSource =
|
|
74
|
-
this.explain =
|
|
75
|
-
this.fieldCaps =
|
|
76
|
-
this.get =
|
|
77
|
-
this.getAllPits =
|
|
78
|
-
this.getScript =
|
|
79
|
-
this.getScriptContext =
|
|
80
|
-
this.getScriptLanguages =
|
|
81
|
-
this.getSource =
|
|
82
|
-
this.index =
|
|
83
|
-
this.info =
|
|
84
|
-
this.mget =
|
|
85
|
-
this.msearch =
|
|
86
|
-
this.msearchTemplate =
|
|
87
|
-
this.mtermvectors =
|
|
88
|
-
this.ping =
|
|
89
|
-
this.putScript =
|
|
90
|
-
this.rankEval =
|
|
91
|
-
this.reindex =
|
|
92
|
-
this.reindexRethrottle =
|
|
93
|
-
this.renderSearchTemplate =
|
|
94
|
-
this.scriptsPainlessExecute =
|
|
95
|
-
this.scroll =
|
|
96
|
-
this.search =
|
|
97
|
-
this.searchShards =
|
|
98
|
-
this.searchTemplate =
|
|
99
|
-
this.termvectors =
|
|
100
|
-
this.update =
|
|
101
|
-
this.updateByQuery =
|
|
102
|
-
this.updateByQueryRethrottle =
|
|
114
|
+
this.bulk = bulkFn.bind(this)
|
|
115
|
+
this.bulkStream = bulkStreamFn.bind(this)
|
|
116
|
+
this.clearScroll = clearScrollFn.bind(this)
|
|
117
|
+
this.count = countFn.bind(this)
|
|
118
|
+
this.create = createFn.bind(this)
|
|
119
|
+
this.createPit = createPitFn.bind(this)
|
|
120
|
+
this.delete = deleteFn.bind(this)
|
|
121
|
+
this.deleteAllPits = deleteAllPitsFn.bind(this)
|
|
122
|
+
this.deleteByQuery = deleteByQueryFn.bind(this)
|
|
123
|
+
this.deleteByQueryRethrottle = deleteByQueryRethrottleFn.bind(this)
|
|
124
|
+
this.deletePit = deletePitFn.bind(this)
|
|
125
|
+
this.deleteScript = deleteScriptFn.bind(this)
|
|
126
|
+
this.exists = existsFn.bind(this)
|
|
127
|
+
this.existsSource = existsSourceFn.bind(this)
|
|
128
|
+
this.explain = explainFn.bind(this)
|
|
129
|
+
this.fieldCaps = fieldCapsFn.bind(this)
|
|
130
|
+
this.get = getFn.bind(this)
|
|
131
|
+
this.getAllPits = getAllPitsFn.bind(this)
|
|
132
|
+
this.getScript = getScriptFn.bind(this)
|
|
133
|
+
this.getScriptContext = getScriptContextFn.bind(this)
|
|
134
|
+
this.getScriptLanguages = getScriptLanguagesFn.bind(this)
|
|
135
|
+
this.getSource = getSourceFn.bind(this)
|
|
136
|
+
this.index = indexFn.bind(this)
|
|
137
|
+
this.info = infoFn.bind(this)
|
|
138
|
+
this.mget = mgetFn.bind(this)
|
|
139
|
+
this.msearch = msearchFn.bind(this)
|
|
140
|
+
this.msearchTemplate = msearchTemplateFn.bind(this)
|
|
141
|
+
this.mtermvectors = mtermvectorsFn.bind(this)
|
|
142
|
+
this.ping = pingFn.bind(this)
|
|
143
|
+
this.putScript = putScriptFn.bind(this)
|
|
144
|
+
this.rankEval = rankEvalFn.bind(this)
|
|
145
|
+
this.reindex = reindexFn.bind(this)
|
|
146
|
+
this.reindexRethrottle = reindexRethrottleFn.bind(this)
|
|
147
|
+
this.renderSearchTemplate = renderSearchTemplateFn.bind(this)
|
|
148
|
+
this.scriptsPainlessExecute = scriptsPainlessExecuteFn.bind(this)
|
|
149
|
+
this.scroll = scrollFn.bind(this)
|
|
150
|
+
this.search = searchFn.bind(this)
|
|
151
|
+
this.searchShards = searchShardsFn.bind(this)
|
|
152
|
+
this.searchTemplate = searchTemplateFn.bind(this)
|
|
153
|
+
this.termvectors = termvectorsFn.bind(this)
|
|
154
|
+
this.update = updateFn.bind(this)
|
|
155
|
+
this.updateByQuery = updateByQueryFn.bind(this)
|
|
156
|
+
this.updateByQueryRethrottle = updateByQueryRethrottleFn.bind(this)
|
|
103
157
|
|
|
104
158
|
// Deprecated: Use bulkStream instead.
|
|
105
|
-
this.bulk_stream =
|
|
159
|
+
this.bulk_stream = bulkStreamFn.bind(this)
|
|
106
160
|
// Deprecated: Use clearScroll instead.
|
|
107
|
-
this.clear_scroll =
|
|
161
|
+
this.clear_scroll = clearScrollFn.bind(this)
|
|
108
162
|
// Deprecated: Use createPit instead.
|
|
109
|
-
this.create_pit =
|
|
163
|
+
this.create_pit = createPitFn.bind(this)
|
|
110
164
|
// Deprecated: Use deleteAllPits instead.
|
|
111
|
-
this.delete_all_pits =
|
|
165
|
+
this.delete_all_pits = deleteAllPitsFn.bind(this)
|
|
112
166
|
// Deprecated: Use deleteByQuery instead.
|
|
113
|
-
this.delete_by_query =
|
|
167
|
+
this.delete_by_query = deleteByQueryFn.bind(this)
|
|
114
168
|
// Deprecated: Use deleteByQueryRethrottle instead.
|
|
115
|
-
this.delete_by_query_rethrottle =
|
|
169
|
+
this.delete_by_query_rethrottle = deleteByQueryRethrottleFn.bind(this)
|
|
116
170
|
// Deprecated: Use deletePit instead.
|
|
117
|
-
this.delete_pit =
|
|
171
|
+
this.delete_pit = deletePitFn.bind(this)
|
|
118
172
|
// Deprecated: Use deleteScript instead.
|
|
119
|
-
this.delete_script =
|
|
173
|
+
this.delete_script = deleteScriptFn.bind(this)
|
|
120
174
|
// Deprecated: Use existsSource instead.
|
|
121
|
-
this.exists_source =
|
|
175
|
+
this.exists_source = existsSourceFn.bind(this)
|
|
122
176
|
// Deprecated: Use fieldCaps instead.
|
|
123
|
-
this.field_caps =
|
|
177
|
+
this.field_caps = fieldCapsFn.bind(this)
|
|
124
178
|
// Deprecated: Use getAllPits instead.
|
|
125
|
-
this.get_all_pits =
|
|
179
|
+
this.get_all_pits = getAllPitsFn.bind(this)
|
|
126
180
|
// Deprecated: Use getScript instead.
|
|
127
|
-
this.get_script =
|
|
181
|
+
this.get_script = getScriptFn.bind(this)
|
|
128
182
|
// Deprecated: Use getScriptContext instead.
|
|
129
|
-
this.get_script_context =
|
|
183
|
+
this.get_script_context = getScriptContextFn.bind(this)
|
|
130
184
|
// Deprecated: Use getScriptLanguages instead.
|
|
131
|
-
this.get_script_languages =
|
|
185
|
+
this.get_script_languages = getScriptLanguagesFn.bind(this)
|
|
132
186
|
// Deprecated: Use getSource instead.
|
|
133
|
-
this.get_source =
|
|
187
|
+
this.get_source = getSourceFn.bind(this)
|
|
134
188
|
// Deprecated: Use msearchTemplate instead.
|
|
135
|
-
this.msearch_template =
|
|
189
|
+
this.msearch_template = msearchTemplateFn.bind(this)
|
|
136
190
|
// Deprecated: Use putScript instead.
|
|
137
|
-
this.put_script =
|
|
191
|
+
this.put_script = putScriptFn.bind(this)
|
|
138
192
|
// Deprecated: Use rankEval instead.
|
|
139
|
-
this.rank_eval =
|
|
193
|
+
this.rank_eval = rankEvalFn.bind(this)
|
|
140
194
|
// Deprecated: Use reindexRethrottle instead.
|
|
141
|
-
this.reindex_rethrottle =
|
|
195
|
+
this.reindex_rethrottle = reindexRethrottleFn.bind(this)
|
|
142
196
|
// Deprecated: Use renderSearchTemplate instead.
|
|
143
|
-
this.render_search_template =
|
|
197
|
+
this.render_search_template = renderSearchTemplateFn.bind(this)
|
|
144
198
|
// Deprecated: Use scriptsPainlessExecute instead.
|
|
145
|
-
this.scripts_painless_execute =
|
|
199
|
+
this.scripts_painless_execute = scriptsPainlessExecuteFn.bind(this)
|
|
146
200
|
// Deprecated: Use searchShards instead.
|
|
147
|
-
this.search_shards =
|
|
201
|
+
this.search_shards = searchShardsFn.bind(this)
|
|
148
202
|
// Deprecated: Use searchTemplate instead.
|
|
149
|
-
this.search_template =
|
|
203
|
+
this.search_template = searchTemplateFn.bind(this)
|
|
150
204
|
// Deprecated: Use updateByQuery instead.
|
|
151
|
-
this.update_by_query =
|
|
205
|
+
this.update_by_query = updateByQueryFn.bind(this)
|
|
152
206
|
// Deprecated: Use updateByQueryRethrottle instead.
|
|
153
|
-
this.update_by_query_rethrottle =
|
|
207
|
+
this.update_by_query_rethrottle = updateByQueryRethrottleFn.bind(this)
|
|
154
208
|
|
|
155
209
|
// Setup API Modules
|
|
210
|
+
// Each namespace is instantiated lazily on first access
|
|
211
|
+
const kApiModulesMap = this[kApiModules]
|
|
212
|
+
const self = this
|
|
156
213
|
Object.defineProperties(this, {
|
|
157
|
-
asynchronousSearch: { get() { return
|
|
158
|
-
cat: { get() { return
|
|
159
|
-
cluster: { get() { return
|
|
160
|
-
danglingIndices: { get() { return
|
|
161
|
-
flowFramework: { get() { return
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
214
|
+
asynchronousSearch: { get() { return kApiModulesMap.asynchronousSearch ?? (kApiModulesMap.asynchronousSearch = new asynchronousSearchCtor(self)) } },
|
|
215
|
+
cat: { get() { return kApiModulesMap.cat ?? (kApiModulesMap.cat = new catCtor(self)) } },
|
|
216
|
+
cluster: { get() { return kApiModulesMap.cluster ?? (kApiModulesMap.cluster = new clusterCtor(self)) } },
|
|
217
|
+
danglingIndices: { get() { return kApiModulesMap.danglingIndices ?? (kApiModulesMap.danglingIndices = new danglingIndicesCtor(self)) } },
|
|
218
|
+
flowFramework: { get() { return kApiModulesMap.flowFramework ?? (kApiModulesMap.flowFramework = new flowFrameworkCtor(self)) } },
|
|
219
|
+
geospatial: { get() { return kApiModulesMap.geospatial ?? (kApiModulesMap.geospatial = new geospatialCtor(self)) } },
|
|
220
|
+
http: { get() { return kApiModulesMap.http ?? (kApiModulesMap.http = new httpCtor(self)) } },
|
|
221
|
+
indices: { get() { return kApiModulesMap.indices ?? (kApiModulesMap.indices = new indicesCtor(self)) } },
|
|
222
|
+
ingest: { get() { return kApiModulesMap.ingest ?? (kApiModulesMap.ingest = new ingestCtor(self)) } },
|
|
223
|
+
ingestion: { get() { return kApiModulesMap.ingestion ?? (kApiModulesMap.ingestion = new ingestionCtor(self)) } },
|
|
224
|
+
insights: { get() { return kApiModulesMap.insights ?? (kApiModulesMap.insights = new insightsCtor(self)) } },
|
|
225
|
+
ism: { get() { return kApiModulesMap.ism ?? (kApiModulesMap.ism = new ismCtor(self)) } },
|
|
226
|
+
knn: { get() { return kApiModulesMap.knn ?? (kApiModulesMap.knn = new knnCtor(self)) } },
|
|
227
|
+
list: { get() { return kApiModulesMap.list ?? (kApiModulesMap.list = new listCtor(self)) } },
|
|
228
|
+
ltr: { get() { return kApiModulesMap.ltr ?? (kApiModulesMap.ltr = new ltrCtor(self)) } },
|
|
229
|
+
ml: { get() { return kApiModulesMap.ml ?? (kApiModulesMap.ml = new mlCtor(self)) } },
|
|
230
|
+
neural: { get() { return kApiModulesMap.neural ?? (kApiModulesMap.neural = new neuralCtor(self)) } },
|
|
231
|
+
nodes: { get() { return kApiModulesMap.nodes ?? (kApiModulesMap.nodes = new nodesCtor(self)) } },
|
|
232
|
+
notifications: { get() { return kApiModulesMap.notifications ?? (kApiModulesMap.notifications = new notificationsCtor(self)) } },
|
|
233
|
+
observability: { get() { return kApiModulesMap.observability ?? (kApiModulesMap.observability = new observabilityCtor(self)) } },
|
|
234
|
+
ppl: { get() { return kApiModulesMap.ppl ?? (kApiModulesMap.ppl = new pplCtor(self)) } },
|
|
235
|
+
query: { get() { return kApiModulesMap.query ?? (kApiModulesMap.query = new queryCtor(self)) } },
|
|
236
|
+
remoteStore: { get() { return kApiModulesMap.remoteStore ?? (kApiModulesMap.remoteStore = new remoteStoreCtor(self)) } },
|
|
237
|
+
replication: { get() { return kApiModulesMap.replication ?? (kApiModulesMap.replication = new replicationCtor(self)) } },
|
|
238
|
+
rollups: { get() { return kApiModulesMap.rollups ?? (kApiModulesMap.rollups = new rollupsCtor(self)) } },
|
|
239
|
+
searchPipeline: { get() { return kApiModulesMap.searchPipeline ?? (kApiModulesMap.searchPipeline = new searchPipelineCtor(self)) } },
|
|
240
|
+
searchRelevance: { get() { return kApiModulesMap.searchRelevance ?? (kApiModulesMap.searchRelevance = new searchRelevanceCtor(self)) } },
|
|
241
|
+
securityAnalytics: { get() { return kApiModulesMap.securityAnalytics ?? (kApiModulesMap.securityAnalytics = new securityAnalyticsCtor(self)) } },
|
|
242
|
+
security: { get() { return kApiModulesMap.security ?? (kApiModulesMap.security = new securityCtor(self)) } },
|
|
243
|
+
sm: { get() { return kApiModulesMap.sm ?? (kApiModulesMap.sm = new smCtor(self)) } },
|
|
244
|
+
snapshot: { get() { return kApiModulesMap.snapshot ?? (kApiModulesMap.snapshot = new snapshotCtor(self)) } },
|
|
245
|
+
sql: { get() { return kApiModulesMap.sql ?? (kApiModulesMap.sql = new sqlCtor(self)) } },
|
|
246
|
+
tasks: { get() { return kApiModulesMap.tasks ?? (kApiModulesMap.tasks = new tasksCtor(self)) } },
|
|
247
|
+
transforms: { get() { return kApiModulesMap.transforms ?? (kApiModulesMap.transforms = new transformsCtor(self)) } },
|
|
248
|
+
ubi: { get() { return kApiModulesMap.ubi ?? (kApiModulesMap.ubi = new ubiCtor(self)) } },
|
|
249
|
+
wlm: { get() { return kApiModulesMap.wlm ?? (kApiModulesMap.wlm = new wlmCtor(self)) } },
|
|
187
250
|
|
|
188
251
|
// Deprecated: Use asynchronousSearch instead.
|
|
189
|
-
asynchronous_search: { get() { return
|
|
252
|
+
asynchronous_search: { get() { return kApiModulesMap.asynchronousSearch ?? (kApiModulesMap.asynchronousSearch = new asynchronousSearchCtor(self)) } },
|
|
190
253
|
// Deprecated: Use danglingIndices instead.
|
|
191
|
-
dangling_indices: { get() { return
|
|
254
|
+
dangling_indices: { get() { return kApiModulesMap.danglingIndices ?? (kApiModulesMap.danglingIndices = new danglingIndicesCtor(self)) } },
|
|
192
255
|
// Deprecated: Use flowFramework instead.
|
|
193
|
-
flow_framework: { get() { return
|
|
256
|
+
flow_framework: { get() { return kApiModulesMap.flowFramework ?? (kApiModulesMap.flowFramework = new flowFrameworkCtor(self)) } },
|
|
194
257
|
// Deprecated: Use remoteStore instead.
|
|
195
|
-
remote_store: { get() { return
|
|
258
|
+
remote_store: { get() { return kApiModulesMap.remoteStore ?? (kApiModulesMap.remoteStore = new remoteStoreCtor(self)) } },
|
|
196
259
|
// Deprecated: Use searchPipeline instead.
|
|
197
|
-
search_pipeline: { get() { return
|
|
260
|
+
search_pipeline: { get() { return kApiModulesMap.searchPipeline ?? (kApiModulesMap.searchPipeline = new searchPipelineCtor(self)) } },
|
|
261
|
+
// Deprecated: Use searchRelevance instead.
|
|
262
|
+
search_relevance: { get() { return kApiModulesMap.searchRelevance ?? (kApiModulesMap.searchRelevance = new searchRelevanceCtor(self)) } },
|
|
263
|
+
// Deprecated: Use securityAnalytics instead.
|
|
264
|
+
security_analytics: { get() { return kApiModulesMap.securityAnalytics ?? (kApiModulesMap.securityAnalytics = new securityAnalyticsCtor(self)) } },
|
|
198
265
|
})
|
|
199
266
|
}
|
|
200
267
|
}
|
package/api/_core/bulk.d.ts
CHANGED
|
@@ -29,22 +29,17 @@ export interface Bulk_Request extends Global.Params {
|
|
|
29
29
|
pipeline?: string;
|
|
30
30
|
refresh?: Common.Refresh;
|
|
31
31
|
require_alias?: boolean;
|
|
32
|
-
routing?: Common.
|
|
32
|
+
routing?: Common.Routing;
|
|
33
33
|
timeout?: Common.Duration;
|
|
34
34
|
type?: string;
|
|
35
35
|
wait_for_active_shards?: Common.WaitForActiveShards;
|
|
36
36
|
}
|
|
37
37
|
|
|
38
|
-
export type Bulk_RequestBody = Core_Bulk.OperationContainer | Core_Bulk.UpdateAction | Record<string, any>[]
|
|
38
|
+
export type Bulk_RequestBody = (Core_Bulk.OperationContainer | Core_Bulk.UpdateAction | Record<string, any>)[]
|
|
39
39
|
|
|
40
40
|
export interface Bulk_Response extends ApiResponse {
|
|
41
41
|
body: Bulk_ResponseBody;
|
|
42
42
|
}
|
|
43
43
|
|
|
44
|
-
export type Bulk_ResponseBody =
|
|
45
|
-
errors: boolean;
|
|
46
|
-
ingest_took?: number;
|
|
47
|
-
items: Record<string, Core_Bulk.ResponseItem>[];
|
|
48
|
-
took: number;
|
|
49
|
-
}
|
|
44
|
+
export type Bulk_ResponseBody = Core_Bulk.BulkResponse
|
|
50
45
|
|
package/api/_core/bulk.js
CHANGED
|
@@ -20,7 +20,7 @@ const { normalizeArguments, parsePathParam, handleMissingParam } = require('../u
|
|
|
20
20
|
|
|
21
21
|
/**
|
|
22
22
|
* Allows to perform multiple index/update/delete operations in a single request.
|
|
23
|
-
* <br/> See Also: {@link https://opensearch.org/
|
|
23
|
+
* <br/> See Also: {@link https://docs.opensearch.org/latest/api-reference/document-apis/bulk/ - bulk}
|
|
24
24
|
*
|
|
25
25
|
* @memberOf API-Core
|
|
26
26
|
*
|
|
@@ -28,14 +28,14 @@ const { normalizeArguments, parsePathParam, handleMissingParam } = require('../u
|
|
|
28
28
|
* @param {string} [params._source] - `true` or `false` to return the `_source` field or not, or a list of fields to return.
|
|
29
29
|
* @param {string} [params._source_excludes] - A comma-separated list of source fields to exclude from the response.
|
|
30
30
|
* @param {string} [params._source_includes] - A comma-separated list of source fields to include in the response.
|
|
31
|
+
* @param {string} [params.index] - Name of the data stream, index, or index alias to perform bulk actions on.
|
|
31
32
|
* @param {string} [params.pipeline] - ID of the pipeline to use to preprocess incoming documents. If the index has a default ingest pipeline specified, then setting the value to `_none` disables the default ingest pipeline for this request. If a final pipeline is configured it will always run, regardless of the value of this parameter.
|
|
32
33
|
* @param {string} [params.refresh] - If `true`, OpenSearch refreshes the affected shards to make this operation visible to search, if `wait_for` then wait for a refresh to make this operation visible to search, if `false` do nothing with refreshes. Valid values: `true`, `false`, `wait_for`.
|
|
33
34
|
* @param {boolean} [params.require_alias=false] - If `true`, the request's actions must target an index alias.
|
|
34
|
-
* @param {string} [params.routing] -
|
|
35
|
+
* @param {string} [params.routing] - A custom value used to route operations to a specific shard.
|
|
35
36
|
* @param {string} [params.timeout] - Period each action waits for the following operations: automatic index creation, dynamic mapping updates, waiting for active shards.
|
|
36
37
|
* @param {string} [params.type] - Default document type for items which don't provide one.
|
|
37
38
|
* @param {string} [params.wait_for_active_shards] - The number of shard copies that must be active before proceeding with the operation. Set to all or any positive integer up to the total number of shards in the index (`number_of_replicas+1`).
|
|
38
|
-
* @param {string} [params.index] - Name of the data stream, index, or index alias to perform bulk actions on.
|
|
39
39
|
* @param {array} params.body - The operation definition and data (action-data pairs), separated by newlines
|
|
40
40
|
*
|
|
41
41
|
* @param {TransportRequestOptions} [options] - Options for {@link Transport#request}
|
|
@@ -37,16 +37,11 @@ export interface BulkStream_Request extends Global.Params {
|
|
|
37
37
|
wait_for_active_shards?: Common.WaitForActiveShards;
|
|
38
38
|
}
|
|
39
39
|
|
|
40
|
-
export type BulkStream_RequestBody = Core_Bulk.OperationContainer | Core_Bulk.UpdateAction | Record<string, any>[]
|
|
40
|
+
export type BulkStream_RequestBody = (Core_Bulk.OperationContainer | Core_Bulk.UpdateAction | Record<string, any>)[]
|
|
41
41
|
|
|
42
42
|
export interface BulkStream_Response extends ApiResponse {
|
|
43
43
|
body: BulkStream_ResponseBody;
|
|
44
44
|
}
|
|
45
45
|
|
|
46
|
-
export type BulkStream_ResponseBody =
|
|
47
|
-
errors: boolean;
|
|
48
|
-
ingest_took?: number;
|
|
49
|
-
items: Record<string, Core_Bulk.ResponseItem>[];
|
|
50
|
-
took: number;
|
|
51
|
-
}
|
|
46
|
+
export type BulkStream_ResponseBody = Core_Bulk.BulkResponse
|
|
52
47
|
|
package/api/_core/bulkStream.js
CHANGED
|
@@ -20,7 +20,7 @@ const { normalizeArguments, parsePathParam, handleMissingParam } = require('../u
|
|
|
20
20
|
|
|
21
21
|
/**
|
|
22
22
|
* Allows to perform multiple index/update/delete operations using request response streaming.
|
|
23
|
-
* <br/> See Also: {@link https://opensearch.org/
|
|
23
|
+
* <br/> See Also: {@link https://docs.opensearch.org/latest/api-reference/document-apis/bulk-streaming/ - bulk_stream}
|
|
24
24
|
*
|
|
25
25
|
* @memberOf API-Core
|
|
26
26
|
*
|
|
@@ -33,7 +33,7 @@ const { normalizeArguments, parsePathParam, handleMissingParam } = require('../u
|
|
|
33
33
|
* @param {string} [params.pipeline] - ID of the pipeline to use to preprocess incoming documents. If the index has a default ingest pipeline specified, then setting the value to `_none` disables the default ingest pipeline for this request. If a final pipeline is configured it will always run, regardless of the value of this parameter.
|
|
34
34
|
* @param {string} [params.refresh] - If `true`, OpenSearch refreshes the affected shards to make this operation visible to search, if `wait_for` then wait for a refresh to make this operation visible to search, if `false` do nothing with refreshes. Valid values: `true`, `false`, `wait_for`.
|
|
35
35
|
* @param {boolean} [params.require_alias=false] - If `true`, the request's actions must target an index alias.
|
|
36
|
-
* @param {string} [params.routing] -
|
|
36
|
+
* @param {string} [params.routing] - A custom value used to route operations to a specific shard.
|
|
37
37
|
* @param {string} [params.timeout] - Period each action waits for the following operations: automatic index creation, dynamic mapping updates, waiting for active shards.
|
|
38
38
|
* @param {string} [params.type] - Default document type for items which don't provide one.
|
|
39
39
|
* @param {string} [params.wait_for_active_shards] - The number of shard copies that must be active before proceeding with the operation. Set to all or any positive integer up to the total number of shards in the index (`number_of_replicas+1`).
|
package/api/_core/clearScroll.js
CHANGED
|
@@ -20,13 +20,13 @@ const { normalizeArguments, parsePathParam } = require('../utils');
|
|
|
20
20
|
|
|
21
21
|
/**
|
|
22
22
|
* Explicitly clears the search context for a scroll.
|
|
23
|
-
* <br/> See Also: {@link https://opensearch.org/
|
|
23
|
+
* <br/> See Also: {@link https://docs.opensearch.org/latest/api-reference/scroll/ - clear_scroll}
|
|
24
24
|
*
|
|
25
25
|
* @memberOf API-Core
|
|
26
26
|
*
|
|
27
27
|
* @param {object} [params]
|
|
28
|
-
* @param {string} [params.scroll_id] DEPRECATED -
|
|
29
|
-
* @param {object} [params.body] -
|
|
28
|
+
* @param {string} [params.scroll_id] DEPRECATED - A comma-separated list of scroll IDs to clear. To clear all scroll IDs, use `_all`.
|
|
29
|
+
* @param {object} [params.body] - A comma-separated list of scroll IDs to clear if none was specified using the `scroll_id` parameter
|
|
30
30
|
*
|
|
31
31
|
* @param {TransportRequestOptions} [options] - Options for {@link Transport#request}
|
|
32
32
|
* @param {function} [callback] - Callback that handles errors and response
|
package/api/_core/count.js
CHANGED
|
@@ -20,7 +20,7 @@ const { normalizeArguments, parsePathParam } = require('../utils');
|
|
|
20
20
|
|
|
21
21
|
/**
|
|
22
22
|
* Returns number of documents matching a query.
|
|
23
|
-
* <br/> See Also: {@link https://opensearch.org/
|
|
23
|
+
* <br/> See Also: {@link https://docs.opensearch.org/latest/api-reference/count/ - count}
|
|
24
24
|
*
|
|
25
25
|
* @memberOf API-Core
|
|
26
26
|
*
|
|
@@ -37,9 +37,9 @@ const { normalizeArguments, parsePathParam } = require('../utils');
|
|
|
37
37
|
* @param {number} [params.min_score] - Sets the minimum `_score` value that documents must have to be included in the result.
|
|
38
38
|
* @param {string} [params.preference=random] - Specifies the node or shard the operation should be performed on. Random by default.
|
|
39
39
|
* @param {string} [params.q] - Query in the Lucene query string syntax.
|
|
40
|
-
* @param {string} [params.routing] -
|
|
40
|
+
* @param {string} [params.routing] - A custom value used to route operations to a specific shard.
|
|
41
41
|
* @param {number} [params.terminate_after] - Maximum number of documents to collect for each shard. If a query reaches this limit, OpenSearch terminates the query early. OpenSearch collects documents before sorting.
|
|
42
|
-
* @param {string} [params.index] -
|
|
42
|
+
* @param {string} [params.index] - A comma-separated list of data streams, indexes, and aliases to search. Supports wildcards (`*`). To search all data streams and indexes, omit this parameter or use `*` or `_all`.
|
|
43
43
|
* @param {object} [params.body] - Query to restrict the results specified with the Query DSL (optional)
|
|
44
44
|
*
|
|
45
45
|
* @param {TransportRequestOptions} [options] - Options for {@link Transport#request}
|
package/api/_core/create.js
CHANGED
|
@@ -22,19 +22,19 @@ const { normalizeArguments, parsePathParam, handleMissingParam } = require('../u
|
|
|
22
22
|
* Creates a new document in the index.
|
|
23
23
|
|
|
24
24
|
Returns a 409 response when a document with a same ID already exists in the index.
|
|
25
|
-
* <br/> See Also: {@link https://opensearch.org/
|
|
25
|
+
* <br/> See Also: {@link https://docs.opensearch.org/latest/api-reference/document-apis/index-document/ - create}
|
|
26
26
|
*
|
|
27
27
|
* @memberOf API-Core
|
|
28
28
|
*
|
|
29
29
|
* @param {object} params
|
|
30
30
|
* @param {string} [params.pipeline] - ID of the pipeline to use to preprocess incoming documents. If the index has a default ingest pipeline specified, then setting the value to `_none` disables the default ingest pipeline for this request. If a final pipeline is configured it will always run, regardless of the value of this parameter.
|
|
31
31
|
* @param {string} [params.refresh] - If `true`, OpenSearch refreshes the affected shards to make this operation visible to search, if `wait_for` then wait for a refresh to make this operation visible to search, if `false` do nothing with refreshes. Valid values: `true`, `false`, `wait_for`.
|
|
32
|
-
* @param {string} [params.routing] -
|
|
32
|
+
* @param {string} [params.routing] - A custom value used to route operations to a specific shard.
|
|
33
33
|
* @param {string} [params.timeout] - Period the request waits for the following operations: automatic index creation, dynamic mapping updates, waiting for active shards.
|
|
34
34
|
* @param {number} [params.version] - Explicit version number for concurrency control. The specified version must match the current version of the document for the request to succeed.
|
|
35
|
-
* @param {string} [params.version_type] -
|
|
35
|
+
* @param {string} [params.version_type] - The specific version type: `external`, `external_gte`.
|
|
36
36
|
* @param {string} [params.wait_for_active_shards] - The number of shard copies that must be active before proceeding with the operation. Set to `all` or any positive integer up to the total number of shards in the index (`number_of_replicas+1`).
|
|
37
|
-
* @param {string} params.id -
|
|
37
|
+
* @param {string} params.id - The unique identifier for the document.
|
|
38
38
|
* @param {string} params.index - Name of the data stream or index to target. If the target doesn't exist and matches the name or wildcard (`*`) pattern of an index template with a `data_stream` definition, this request creates the data stream. If the target doesn't exist and doesn't match a data stream template, this request creates the index.
|
|
39
39
|
* @param {object} params.body - The document
|
|
40
40
|
*
|
package/api/_core/createPit.d.ts
CHANGED
|
@@ -19,10 +19,13 @@ import * as Common from '../_types/_common'
|
|
|
19
19
|
import * as Global from '../_types/_global'
|
|
20
20
|
|
|
21
21
|
export interface CreatePit_Request extends Global.Params {
|
|
22
|
+
allow_no_indices?: boolean;
|
|
22
23
|
allow_partial_pit_creation?: boolean;
|
|
23
24
|
expand_wildcards?: Common.ExpandWildcards;
|
|
25
|
+
ignore_throttled?: boolean;
|
|
26
|
+
ignore_unavailable?: boolean;
|
|
24
27
|
index: string[];
|
|
25
|
-
keep_alive
|
|
28
|
+
keep_alive: Common.Duration;
|
|
26
29
|
preference?: string;
|
|
27
30
|
routing?: Common.RoutingInQueryString;
|
|
28
31
|
}
|
|
@@ -32,8 +35,8 @@ export interface CreatePit_Response extends ApiResponse {
|
|
|
32
35
|
}
|
|
33
36
|
|
|
34
37
|
export type CreatePit_ResponseBody = {
|
|
35
|
-
_shards
|
|
36
|
-
creation_time
|
|
37
|
-
pit_id
|
|
38
|
+
_shards: Common.ShardStatistics;
|
|
39
|
+
creation_time: number;
|
|
40
|
+
pit_id: string;
|
|
38
41
|
}
|
|
39
42
|
|
package/api/_core/createPit.js
CHANGED
|
@@ -20,17 +20,20 @@ const { normalizeArguments, parsePathParam, handleMissingParam } = require('../u
|
|
|
20
20
|
|
|
21
21
|
/**
|
|
22
22
|
* Creates point in time context.
|
|
23
|
-
* <br/> See Also: {@link https://opensearch.org/
|
|
23
|
+
* <br/> See Also: {@link https://docs.opensearch.org/latest/api-reference/search-apis/point-in-time-api/#create-a-pit - create_pit}
|
|
24
24
|
*
|
|
25
25
|
* @memberOf API-Core
|
|
26
26
|
*
|
|
27
27
|
* @param {object} params
|
|
28
|
+
* @param {boolean} [params.allow_no_indices] - If `false`, the request returns an error if any wildcard expression, index alias, or `_all` value targets only missing or closed indexes. This behavior applies even if the request targets other open indexes.
|
|
28
29
|
* @param {boolean} [params.allow_partial_pit_creation] - Allow if point in time can be created with partial failures.
|
|
29
30
|
* @param {string} [params.expand_wildcards] - Whether to expand wildcard expression to concrete indexes that are open, closed or both.
|
|
30
|
-
* @param {
|
|
31
|
+
* @param {boolean} [params.ignore_throttled] - If `true`, concrete, expanded or aliased indexes will be ignored when frozen.
|
|
32
|
+
* @param {boolean} [params.ignore_unavailable] - If `false`, the request returns an error if it targets a missing or closed index.
|
|
33
|
+
* @param {string} params.keep_alive - Specify the keep alive for point in time.
|
|
31
34
|
* @param {string} [params.preference=random] - Specify the node or shard the operation should be performed on.
|
|
32
|
-
* @param {string} [params.routing] -
|
|
33
|
-
* @param {array} params.index -
|
|
35
|
+
* @param {string} [params.routing] - A comma-separated list of specific routing values.
|
|
36
|
+
* @param {array} params.index - A comma-separated list of indexes; use `_all` or empty string to perform the operation on all indexes.
|
|
34
37
|
*
|
|
35
38
|
* @param {TransportRequestOptions} [options] - Options for {@link Transport#request}
|
|
36
39
|
* @param {function} [callback] - Callback that handles errors and response
|
|
@@ -39,6 +42,7 @@ const { normalizeArguments, parsePathParam, handleMissingParam } = require('../u
|
|
|
39
42
|
*/
|
|
40
43
|
function createPitFunc(params, options, callback) {
|
|
41
44
|
[params, options, callback] = normalizeArguments(params, options, callback);
|
|
45
|
+
if (params.keep_alive == null) return handleMissingParam('keep_alive', this, callback);
|
|
42
46
|
if (params.index == null) return handleMissingParam('index', this, callback);
|
|
43
47
|
|
|
44
48
|
let { body, index, ...querystring } = params;
|