Support for Elasticsearch 7.6 (#1075)
This commit is contained in:
committed by
GitHub
parent
d19313a72c
commit
8bd5c4c4ce
@ -101,7 +101,7 @@ link:{ref}/docs-bulk.html[Documentation] +
|
||||
|`string` - Sets the number of shard copies that must be active before proceeding with the bulk operation. Defaults to 1, meaning the primary shard only. Set to `all` for all shard copies, otherwise set to any non-negative value less than or equal to the total number of copies for the shard (number of replicas + 1)
|
||||
|
||||
|`refresh`
|
||||
|`'true' \| 'false' \| 'wait_for'` - If `true` then refresh the effected 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` (the default) then do nothing with refreshes.
|
||||
|`'true' \| 'false' \| 'wait_for'` - If `true` then refresh 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` (the default) then do nothing with refreshes.
|
||||
|
||||
|`routing`
|
||||
|`string` - Specific routing value
|
||||
@ -358,7 +358,7 @@ link:{ref}/cat.html[Documentation] +
|
||||
client.cat.indices({
|
||||
index: string | string[],
|
||||
format: string,
|
||||
bytes: 'b' | 'k' | 'm' | 'g',
|
||||
bytes: 'b' | 'k' | 'kb' | 'm' | 'mb' | 'g' | 'gb' | 't' | 'tb' | 'p' | 'pb',
|
||||
local: boolean,
|
||||
master_timeout: string,
|
||||
h: string | string[],
|
||||
@ -381,7 +381,7 @@ link:{ref}/cat-indices.html[Documentation] +
|
||||
|`string` - a short version of the Accept header, e.g. json, yaml
|
||||
|
||||
|`bytes`
|
||||
|`'b' \| 'k' \| 'm' \| 'g'` - The unit in which to display byte values
|
||||
|`'b' \| 'k' \| 'kb' \| 'm' \| 'mb' \| 'g' \| 'gb' \| 't' \| 'tb' \| 'p' \| 'pb'` - The unit in which to display byte values
|
||||
|
||||
|`local`
|
||||
|`boolean` - Return local information, do not retrieve the state from master node (default: false)
|
||||
@ -525,7 +525,9 @@ link:{ref}/cat-nodes.html[Documentation] +
|
||||
|`boolean` - Return the full node ID instead of the shortened version (default: false)
|
||||
|
||||
|`local`
|
||||
|`boolean` - Return local information, do not retrieve the state from master node (default: false)
|
||||
|`boolean` - Calculate the selected nodes using the local cluster state rather than the state from master node (default: false) +
|
||||
|
||||
WARNING: This parameter has been deprecated.
|
||||
|
||||
|`master_timeout` or `masterTimeout`
|
||||
|`string` - Explicit operation timeout for connection to master node
|
||||
@ -1493,7 +1495,7 @@ WARNING: This parameter has been deprecated.
|
||||
|`string` - Sets the number of shard copies that must be active before proceeding with the delete operation. Defaults to 1, meaning the primary shard only. Set to `all` for all shard copies, otherwise set to any non-negative value less than or equal to the total number of copies for the shard (number of replicas + 1)
|
||||
|
||||
|`refresh`
|
||||
|`'true' \| 'false' \| 'wait_for'` - If `true` then refresh the effected 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` (the default) then do nothing with refreshes.
|
||||
|`'true' \| 'false' \| 'wait_for'` - If `true` then refresh 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` (the default) then do nothing with refreshes.
|
||||
|
||||
|`routing`
|
||||
|`string` - Specific routing value
|
||||
@ -2049,6 +2051,22 @@ link:{ref}/modules-scripting.html[Documentation] +
|
||||
|
||||
|===
|
||||
|
||||
=== getScriptContext
|
||||
*Stability:* experimental
|
||||
[source,ts]
|
||||
----
|
||||
client.getScriptContext()
|
||||
----
|
||||
|
||||
|
||||
=== getScriptLanguages
|
||||
*Stability:* experimental
|
||||
[source,ts]
|
||||
----
|
||||
client.getScriptLanguages()
|
||||
----
|
||||
|
||||
|
||||
=== getSource
|
||||
|
||||
[source,ts]
|
||||
@ -4215,6 +4233,7 @@ client.rankEval({
|
||||
ignore_unavailable: boolean,
|
||||
allow_no_indices: boolean,
|
||||
expand_wildcards: 'open' | 'closed' | 'none' | 'all',
|
||||
search_type: 'query_then_fetch' | 'dfs_query_then_fetch',
|
||||
body: object
|
||||
})
|
||||
----
|
||||
@ -4234,6 +4253,9 @@ link:{ref}/search-rank-eval.html[Documentation] +
|
||||
|`'open' \| 'closed' \| 'none' \| 'all'` - Whether to expand wildcard expression to concrete indices that are open, closed or both. +
|
||||
_Default:_ `open`
|
||||
|
||||
|`search_type` or `searchType`
|
||||
|`'query_then_fetch' \| 'dfs_query_then_fetch'` - Search operation type
|
||||
|
||||
|`body`
|
||||
|`object` - The ranking evaluation search definition, including search requests, document ratings and ranking metric definition.
|
||||
|
||||
@ -4260,7 +4282,7 @@ link:{ref}/docs-reindex.html[Documentation] +
|
||||
[cols=2*]
|
||||
|===
|
||||
|`refresh`
|
||||
|`boolean` - Should the effected indexes be refreshed?
|
||||
|`boolean` - Should the affected indexes be refreshed?
|
||||
|
||||
|`timeout`
|
||||
|`string` - Time each individual bulk request should wait for shards that are unavailable. +
|
||||
@ -5196,7 +5218,7 @@ WARNING: This parameter has been deprecated.
|
||||
|`string` - The script language (default: painless)
|
||||
|
||||
|`refresh`
|
||||
|`'true' \| 'false' \| 'wait_for'` - If `true` then refresh the effected 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` (the default) then do nothing with refreshes.
|
||||
|`'true' \| 'false' \| 'wait_for'` - If `true` then refresh 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` (the default) then do nothing with refreshes.
|
||||
|
||||
|`retry_on_conflict` or `retryOnConflict`
|
||||
|`number` - Specify how many times should the operation be retried when a conflict occurs (default: 0)
|
||||
@ -5361,7 +5383,7 @@ _Default:_ `open`
|
||||
|`boolean` - Specify if request cache should be used for this request or not, defaults to index level setting
|
||||
|
||||
|`refresh`
|
||||
|`boolean` - Should the effected indexes be refreshed?
|
||||
|`boolean` - Should the affected indexes be refreshed?
|
||||
|
||||
|`timeout`
|
||||
|`string` - Time each individual bulk request should wait for shards that are unavailable. +
|
||||
@ -5939,7 +5961,7 @@ _Default:_ `closed`
|
||||
|===
|
||||
|
||||
=== indices.reloadSearchAnalyzers
|
||||
*Stability:* experimental
|
||||
|
||||
[source,ts]
|
||||
----
|
||||
client.indices.reloadSearchAnalyzers({
|
||||
@ -6022,7 +6044,8 @@ link:{ref}/delete-license.html[Documentation] +
|
||||
[source,ts]
|
||||
----
|
||||
client.license.get({
|
||||
local: boolean
|
||||
local: boolean,
|
||||
accept_enterprise: boolean
|
||||
})
|
||||
----
|
||||
link:{ref}/get-license.html[Documentation] +
|
||||
@ -6031,6 +6054,9 @@ link:{ref}/get-license.html[Documentation] +
|
||||
|`local`
|
||||
|`boolean` - Return local information, do not retrieve the state from master node (default: false)
|
||||
|
||||
|`accept_enterprise` or `acceptEnterprise`
|
||||
|`boolean` - If the active license is an enterprise license, return type as 'enterprise' (default: false)
|
||||
|
||||
|===
|
||||
|
||||
=== license.getBasicStatus
|
||||
@ -6213,7 +6239,8 @@ client.ml.deleteCalendarJob({
|
||||
[source,ts]
|
||||
----
|
||||
client.ml.deleteDataFrameAnalytics({
|
||||
id: string
|
||||
id: string,
|
||||
force: boolean
|
||||
})
|
||||
----
|
||||
link:{ref}/delete-dfanalytics.html[Documentation] +
|
||||
@ -6222,6 +6249,9 @@ link:{ref}/delete-dfanalytics.html[Documentation] +
|
||||
|`id`
|
||||
|`string` - The ID of the data frame analytics to delete
|
||||
|
||||
|`force`
|
||||
|`boolean` - True if the job should be forcefully deleted
|
||||
|
||||
|===
|
||||
|
||||
=== ml.deleteDatafeed
|
||||
@ -6340,19 +6370,19 @@ link:{ref}/ml-delete-snapshot.html[Documentation] +
|
||||
|
||||
|===
|
||||
|
||||
=== ml.estimateMemoryUsage
|
||||
=== ml.deleteTrainedModel
|
||||
*Stability:* experimental
|
||||
[source,ts]
|
||||
----
|
||||
client.ml.estimateMemoryUsage({
|
||||
body: object
|
||||
client.ml.deleteTrainedModel({
|
||||
model_id: string
|
||||
})
|
||||
----
|
||||
https://www.elastic.co/guide/en/elasticsearch/reference/7.5/estimate-memory-usage-dfanalytics.html[Documentation] +
|
||||
link:{ref}/delete-inference.html[Documentation] +
|
||||
[cols=2*]
|
||||
|===
|
||||
|`body`
|
||||
|`object` - Memory usage estimation definition
|
||||
|`model_id` or `modelId`
|
||||
|`string` - The ID of the trained model to delete
|
||||
|
||||
|===
|
||||
|
||||
@ -6372,6 +6402,26 @@ link:{ref}/evaluate-dfanalytics.html[Documentation] +
|
||||
|
||||
|===
|
||||
|
||||
=== ml.explainDataFrameAnalytics
|
||||
*Stability:* experimental
|
||||
[source,ts]
|
||||
----
|
||||
client.ml.explainDataFrameAnalytics({
|
||||
id: string,
|
||||
body: object
|
||||
})
|
||||
----
|
||||
link:{ref}/explain-dfanalytics.html[Documentation] +
|
||||
[cols=2*]
|
||||
|===
|
||||
|`id`
|
||||
|`string` - The ID of the data frame analytics to explain
|
||||
|
||||
|`body`
|
||||
|`object` - The data frame analytics config to explain
|
||||
|
||||
|===
|
||||
|
||||
=== ml.findFileStructure
|
||||
*Stability:* experimental
|
||||
[source,ts]
|
||||
@ -7027,6 +7077,75 @@ link:{ref}/ml-get-record.html[Documentation] +
|
||||
|
||||
|===
|
||||
|
||||
=== ml.getTrainedModels
|
||||
*Stability:* experimental
|
||||
[source,ts]
|
||||
----
|
||||
client.ml.getTrainedModels({
|
||||
model_id: string,
|
||||
allow_no_match: boolean,
|
||||
include_model_definition: boolean,
|
||||
decompress_definition: boolean,
|
||||
from: number,
|
||||
size: number
|
||||
})
|
||||
----
|
||||
link:{ref}/get-inference.html[Documentation] +
|
||||
[cols=2*]
|
||||
|===
|
||||
|`model_id` or `modelId`
|
||||
|`string` - The ID of the trained models to fetch
|
||||
|
||||
|`allow_no_match` or `allowNoMatch`
|
||||
|`boolean` - Whether to ignore if a wildcard expression matches no trained models. (This includes `_all` string or when no trained models have been specified) +
|
||||
_Default:_ `true`
|
||||
|
||||
|`include_model_definition` or `includeModelDefinition`
|
||||
|`boolean` - Should the full model definition be included in the results. These definitions can be large. So be cautious when including them. Defaults to false.
|
||||
|
||||
|`decompress_definition` or `decompressDefinition`
|
||||
|`boolean` - Should the model definition be decompressed into valid JSON or returned in a custom compressed format. Defaults to true. +
|
||||
_Default:_ `true`
|
||||
|
||||
|`from`
|
||||
|`number` - skips a number of trained models
|
||||
|
||||
|`size`
|
||||
|`number` - specifies a max number of trained models to get +
|
||||
_Default:_ `100`
|
||||
|
||||
|===
|
||||
|
||||
=== ml.getTrainedModelsStats
|
||||
*Stability:* experimental
|
||||
[source,ts]
|
||||
----
|
||||
client.ml.getTrainedModelsStats({
|
||||
model_id: string,
|
||||
allow_no_match: boolean,
|
||||
from: number,
|
||||
size: number
|
||||
})
|
||||
----
|
||||
link:{ref}/get-inference-stats.html[Documentation] +
|
||||
[cols=2*]
|
||||
|===
|
||||
|`model_id` or `modelId`
|
||||
|`string` - The ID of the trained models stats to fetch
|
||||
|
||||
|`allow_no_match` or `allowNoMatch`
|
||||
|`boolean` - Whether to ignore if a wildcard expression matches no trained models. (This includes `_all` string or when no trained models have been specified) +
|
||||
_Default:_ `true`
|
||||
|
||||
|`from`
|
||||
|`number` - skips a number of trained models
|
||||
|
||||
|`size`
|
||||
|`number` - specifies a max number of trained models to get +
|
||||
_Default:_ `100`
|
||||
|
||||
|===
|
||||
|
||||
=== ml.info
|
||||
|
||||
[source,ts]
|
||||
@ -7231,6 +7350,26 @@ link:{ref}/ml-put-job.html[Documentation] +
|
||||
|
||||
|===
|
||||
|
||||
=== ml.putTrainedModel
|
||||
*Stability:* experimental
|
||||
[source,ts]
|
||||
----
|
||||
client.ml.putTrainedModel({
|
||||
model_id: string,
|
||||
body: object
|
||||
})
|
||||
----
|
||||
link:TODO[Documentation] +
|
||||
[cols=2*]
|
||||
|===
|
||||
|`model_id` or `modelId`
|
||||
|`string` - The ID of the trained models to store
|
||||
|
||||
|`body`
|
||||
|`object` - The trained model configuration
|
||||
|
||||
|===
|
||||
|
||||
=== ml.revertModelSnapshot
|
||||
|
||||
[source,ts]
|
||||
@ -8191,7 +8330,7 @@ client.slm.deleteLifecycle({
|
||||
policy_id: string
|
||||
})
|
||||
----
|
||||
link:{ref}/slm-api-delete.html[Documentation] +
|
||||
link:{ref}/slm-api-delete-policy.html[Documentation] +
|
||||
[cols=2*]
|
||||
|===
|
||||
|`policy_id` or `policyId`
|
||||
@ -8207,7 +8346,7 @@ client.slm.executeLifecycle({
|
||||
policy_id: string
|
||||
})
|
||||
----
|
||||
link:{ref}/slm-api-execute.html[Documentation] +
|
||||
link:{ref}/slm-api-execute-lifecycle.html[Documentation] +
|
||||
[cols=2*]
|
||||
|===
|
||||
|`policy_id` or `policyId`
|
||||
@ -8232,7 +8371,7 @@ client.slm.getLifecycle({
|
||||
policy_id: string | string[]
|
||||
})
|
||||
----
|
||||
link:{ref}/slm-api-get.html[Documentation] +
|
||||
link:{ref}/slm-api-get-policy.html[Documentation] +
|
||||
[cols=2*]
|
||||
|===
|
||||
|`policy_id` or `policyId`
|
||||
@ -8246,7 +8385,16 @@ link:{ref}/slm-api-get.html[Documentation] +
|
||||
----
|
||||
client.slm.getStats()
|
||||
----
|
||||
link:{ref}/slm-get-stats.html[Documentation] +
|
||||
link:{ref}/slm-api-get-stats.html[Documentation] +
|
||||
|
||||
|
||||
=== slm.getStatus
|
||||
|
||||
[source,ts]
|
||||
----
|
||||
client.slm.getStatus()
|
||||
----
|
||||
link:{ref}/slm-api-get-status.html[Documentation] +
|
||||
|
||||
|
||||
=== slm.putLifecycle
|
||||
@ -8258,7 +8406,7 @@ client.slm.putLifecycle({
|
||||
body: object
|
||||
})
|
||||
----
|
||||
link:{ref}/slm-api-put.html[Documentation] +
|
||||
link:{ref}/slm-api-put-policy.html[Documentation] +
|
||||
[cols=2*]
|
||||
|===
|
||||
|`policy_id` or `policyId`
|
||||
@ -8269,6 +8417,24 @@ link:{ref}/slm-api-put.html[Documentation] +
|
||||
|
||||
|===
|
||||
|
||||
=== slm.start
|
||||
|
||||
[source,ts]
|
||||
----
|
||||
client.slm.start()
|
||||
----
|
||||
link:{ref}/slm-api-start.html[Documentation] +
|
||||
|
||||
|
||||
=== slm.stop
|
||||
|
||||
[source,ts]
|
||||
----
|
||||
client.slm.stop()
|
||||
----
|
||||
link:{ref}/slm-api-stop.html[Documentation] +
|
||||
|
||||
|
||||
=== sql.clearCursor
|
||||
|
||||
[source,ts]
|
||||
@ -8473,9 +8639,11 @@ link:{ref}/start-transform.html[Documentation] +
|
||||
----
|
||||
client.transform.stopTransform({
|
||||
transform_id: string,
|
||||
force: boolean,
|
||||
wait_for_completion: boolean,
|
||||
timeout: string,
|
||||
allow_no_match: boolean
|
||||
allow_no_match: boolean,
|
||||
wait_for_checkpoint: boolean
|
||||
})
|
||||
----
|
||||
link:{ref}/stop-transform.html[Documentation] +
|
||||
@ -8484,6 +8652,9 @@ link:{ref}/stop-transform.html[Documentation] +
|
||||
|`transform_id` or `transformId`
|
||||
|`string` - The id of the transform to stop
|
||||
|
||||
|`force`
|
||||
|`boolean` - Whether to force stop a failed transform or not. Default to false
|
||||
|
||||
|`wait_for_completion` or `waitForCompletion`
|
||||
|`boolean` - Whether to wait for the transform to fully stop before returning or not. Default to false
|
||||
|
||||
@ -8493,6 +8664,9 @@ link:{ref}/stop-transform.html[Documentation] +
|
||||
|`allow_no_match` or `allowNoMatch`
|
||||
|`boolean` - Whether to ignore if a wildcard expression matches no transforms. (This includes `_all` string or when no transforms have been specified)
|
||||
|
||||
|`wait_for_checkpoint` or `waitForCheckpoint`
|
||||
|`boolean` - Whether to wait for the transform to reach a checkpoint before stopping. Default to false
|
||||
|
||||
|===
|
||||
|
||||
=== transform.updateTransform
|
||||
|
||||
Reference in New Issue
Block a user