@opensearch-project/opensearch 3.4.0 → 3.5.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 +8 -0
- package/api/OpenSearchApi.js +2 -0
- package/api/_core/exists.d.ts +1 -3
- package/api/_core/existsSource.d.ts +1 -3
- package/api/_core/ping.d.ts +1 -3
- package/api/_types/_common.aggregations.d.ts +143 -71
- package/api/_types/_common.d.ts +2 -1
- package/api/_types/_common.mapping.d.ts +1 -0
- package/api/_types/_common.query_dsl.d.ts +11 -2
- package/api/_types/_core.explain.d.ts +2 -2
- package/api/_types/cluster.stats.d.ts +1 -0
- package/api/_types/flow_framework.common.d.ts +12 -16
- package/api/_types/index.d.ts +2 -0
- package/api/_types/indices._common.d.ts +1 -0
- package/api/_types/insights._common.d.ts +4 -0
- package/api/_types/knn._common.d.ts +8 -7
- package/api/_types/ltr._common.d.ts +55 -0
- package/api/_types/nodes.info.d.ts +2 -2
- package/api/_types/nodes.stats.d.ts +22 -13
- package/api/_types/security._common.d.ts +5 -0
- package/api/_types/snapshot._common.d.ts +38 -38
- package/api/cluster/allocationExplain.js +1 -1
- package/api/cluster/deleteComponentTemplate.js +3 -3
- package/api/cluster/existsComponentTemplate.d.ts +1 -3
- package/api/cluster/existsComponentTemplate.js +2 -2
- package/api/cluster/getComponentTemplate.js +3 -3
- package/api/cluster/getSettings.js +4 -4
- package/api/cluster/health.js +4 -4
- package/api/cluster/pendingTasks.js +2 -2
- package/api/cluster/postVotingConfigExclusions.js +2 -2
- package/api/cluster/putComponentTemplate.js +4 -4
- package/api/cluster/putDecommissionAwareness.js +1 -1
- package/api/cluster/putSettings.js +4 -4
- package/api/cluster/putWeightedRouting.js +1 -1
- package/api/cluster/reroute.js +4 -4
- package/api/cluster/state.js +4 -4
- package/api/cluster/stats.js +2 -2
- package/api/flowFramework/delete.d.ts +2 -1
- package/api/index.d.ts +2 -0
- package/api/indices/exists.d.ts +1 -3
- package/api/indices/existsAlias.d.ts +1 -3
- package/api/indices/existsIndexTemplate.d.ts +1 -3
- package/api/indices/existsTemplate.d.ts +1 -3
- package/api/ingest/deletePipeline.js +4 -4
- package/api/ingest/getPipeline.js +3 -3
- package/api/ingest/processorGrok.js +2 -2
- package/api/ingest/putPipeline.js +5 -5
- package/api/ingest/simulate.js +3 -3
- package/api/ism/existsPolicy.d.ts +1 -3
- package/api/knn/searchModels.d.ts +4 -4
- package/api/ltr/_api.js +26 -0
- package/api/ltr/stats.d.ts +33 -0
- package/api/ltr/stats.js +51 -0
- package/api/replication/autofollowStats.js +1 -1
- package/api/replication/createReplicationRule.js +1 -1
- package/api/replication/followerStats.js +1 -1
- package/api/replication/leaderStats.js +1 -1
- package/api/replication/pause.js +2 -2
- package/api/replication/resume.js +1 -1
- package/api/replication/start.js +2 -2
- package/api/replication/status.js +2 -2
- package/api/replication/stop.js +2 -2
- package/api/replication/updateSettings.js +2 -2
- package/api/sm/createPolicy.js +1 -1
- package/api/sm/deletePolicy.js +1 -1
- package/api/sm/explainPolicy.js +1 -1
- package/api/sm/getPolicies.js +5 -5
- package/api/sm/getPolicy.js +1 -1
- package/api/sm/startPolicy.js +1 -1
- package/api/sm/stopPolicy.js +1 -1
- package/api/sm/updatePolicy.js +1 -1
- package/api/snapshot/cleanupRepository.js +3 -3
- package/api/snapshot/clone.js +6 -6
- package/api/snapshot/create.js +6 -6
- package/api/snapshot/createRepository.js +6 -6
- package/api/snapshot/delete.js +3 -3
- package/api/snapshot/deleteRepository.js +4 -4
- package/api/snapshot/get.js +5 -5
- package/api/snapshot/getRepository.js +4 -4
- package/api/snapshot/restore.js +5 -5
- package/api/snapshot/status.js +4 -4
- package/api/snapshot/verifyRepository.js +3 -3
- package/api/tasks/cancel.js +5 -5
- package/api/tasks/get.js +3 -3
- package/api/tasks/list.js +7 -7
- package/lib/pool/BaseConnectionPool.js +6 -0
- package/package.json +1 -1
package/api/tasks/cancel.js
CHANGED
|
@@ -25,11 +25,11 @@ const { normalizeArguments, parsePathParam } = require('../utils');
|
|
|
25
25
|
* @memberOf API-Tasks
|
|
26
26
|
*
|
|
27
27
|
* @param {object} [params]
|
|
28
|
-
* @param {string} [params.actions] -
|
|
29
|
-
* @param {array} [params.nodes] -
|
|
30
|
-
* @param {string} [params.parent_task_id] -
|
|
31
|
-
* @param {boolean} [params.wait_for_completion=false] -
|
|
32
|
-
* @param {string} [params.task_id] -
|
|
28
|
+
* @param {string} [params.actions] - A comma-separated list of actions that should be returned. Keep empty to return all.
|
|
29
|
+
* @param {array} [params.nodes] - A comma-separated list of node IDs or names used to limit the returned information. Use `_local` to return information from the node you're connecting to, specify the node name to get information from a specific node, or keep the parameter empty to get information from all nodes.
|
|
30
|
+
* @param {string} [params.parent_task_id] - Returns tasks with a specified parent task ID (`node_id:task_number`). Keep empty or set to -1 to return all.
|
|
31
|
+
* @param {boolean} [params.wait_for_completion=false] - Waits for the matching task to complete. When `true`, the request is blocked until the task has completed.
|
|
32
|
+
* @param {string} [params.task_id] - The task ID.
|
|
33
33
|
*
|
|
34
34
|
* @param {TransportRequestOptions} [options] - Options for {@link Transport#request}
|
|
35
35
|
* @param {function} [callback] - Callback that handles errors and response
|
package/api/tasks/get.js
CHANGED
|
@@ -25,9 +25,9 @@ const { normalizeArguments, parsePathParam, handleMissingParam } = require('../u
|
|
|
25
25
|
* @memberOf API-Tasks
|
|
26
26
|
*
|
|
27
27
|
* @param {object} params
|
|
28
|
-
* @param {string} [params.timeout] -
|
|
29
|
-
* @param {boolean} [params.wait_for_completion=false] -
|
|
30
|
-
* @param {string} params.task_id -
|
|
28
|
+
* @param {string} [params.timeout] - The amount of time to wait for a response.
|
|
29
|
+
* @param {boolean} [params.wait_for_completion=false] - Waits for the matching task to complete. When `true`, the request is blocked until the task has completed.
|
|
30
|
+
* @param {string} params.task_id - The task ID.
|
|
31
31
|
*
|
|
32
32
|
* @param {TransportRequestOptions} [options] - Options for {@link Transport#request}
|
|
33
33
|
* @param {function} [callback] - Callback that handles errors and response
|
package/api/tasks/list.js
CHANGED
|
@@ -25,13 +25,13 @@ const { normalizeArguments } = require('../utils');
|
|
|
25
25
|
* @memberOf API-Tasks
|
|
26
26
|
*
|
|
27
27
|
* @param {object} [params]
|
|
28
|
-
* @param {string} [params.actions] -
|
|
29
|
-
* @param {boolean} [params.detailed=false] -
|
|
30
|
-
* @param {string} [params.group_by] -
|
|
31
|
-
* @param {array} [params.nodes] -
|
|
32
|
-
* @param {string} [params.parent_task_id] -
|
|
33
|
-
* @param {string} [params.timeout] -
|
|
34
|
-
* @param {boolean} [params.wait_for_completion=false] -
|
|
28
|
+
* @param {string} [params.actions] - A comma-separated list of actions that should be returned. Keep empty to return all.
|
|
29
|
+
* @param {boolean} [params.detailed=false] - When `true`, the response includes detailed information about shard recoveries.
|
|
30
|
+
* @param {string} [params.group_by] - Groups tasks by parent/child relationships or nodes.
|
|
31
|
+
* @param {array} [params.nodes] - A comma-separated list of node IDs or names used to limit the returned information. Use `_local` to return information from the node you're connecting to, specify the node name to get information from a specific node, or keep the parameter empty to get information from all nodes.
|
|
32
|
+
* @param {string} [params.parent_task_id] - Returns tasks with a specified parent task ID (`node_id:task_number`). Keep empty or set to -1 to return all.
|
|
33
|
+
* @param {string} [params.timeout] - The amount of time to wait for a response.
|
|
34
|
+
* @param {boolean} [params.wait_for_completion=false] - Waits for the matching task to complete. When `true`, the request is blocked until the task has completed.
|
|
35
35
|
*
|
|
36
36
|
* @param {TransportRequestOptions} [options] - Options for {@link Transport#request}
|
|
37
37
|
* @param {function} [callback] - Callback that handles errors and response
|
|
@@ -222,6 +222,12 @@ class BaseConnectionPool {
|
|
|
222
222
|
|
|
223
223
|
for (let i = 0, len = ids.length; i < len; i++) {
|
|
224
224
|
const node = nodes[ids[i]];
|
|
225
|
+
|
|
226
|
+
// New nodes do not have the http property populated yet. Skip this for now.
|
|
227
|
+
if (node.http === undefined) {
|
|
228
|
+
continue;
|
|
229
|
+
}
|
|
230
|
+
|
|
225
231
|
// If there is no protocol in
|
|
226
232
|
// the `publish_address` new URL will throw
|
|
227
233
|
// the publish_address can have two forms:
|