elasticsearch-api 9.1.1 → 9.1.3

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.
Files changed (82) hide show
  1. checksums.yaml +4 -4
  2. data/lib/elasticsearch/api/actions/async_search/submit.rb +4 -4
  3. data/lib/elasticsearch/api/actions/bulk.rb +2 -3
  4. data/lib/elasticsearch/api/actions/cat/aliases.rb +10 -1
  5. data/lib/elasticsearch/api/actions/cat/allocation.rb +10 -2
  6. data/lib/elasticsearch/api/actions/cat/component_templates.rb +10 -1
  7. data/lib/elasticsearch/api/actions/cat/count.rb +10 -1
  8. data/lib/elasticsearch/api/actions/cat/fielddata.rb +10 -2
  9. data/lib/elasticsearch/api/actions/cat/health.rb +10 -2
  10. data/lib/elasticsearch/api/actions/cat/indices.rb +10 -3
  11. data/lib/elasticsearch/api/actions/cat/master.rb +10 -1
  12. data/lib/elasticsearch/api/actions/cat/ml_data_frame_analytics.rb +11 -3
  13. data/lib/elasticsearch/api/actions/cat/ml_datafeeds.rb +9 -1
  14. data/lib/elasticsearch/api/actions/cat/ml_jobs.rb +9 -2
  15. data/lib/elasticsearch/api/actions/cat/ml_trained_models.rb +11 -4
  16. data/lib/elasticsearch/api/actions/cat/nodeattrs.rb +10 -1
  17. data/lib/elasticsearch/api/actions/cat/nodes.rb +9 -2
  18. data/lib/elasticsearch/api/actions/cat/pending_tasks.rb +10 -2
  19. data/lib/elasticsearch/api/actions/cat/plugins.rb +10 -1
  20. data/lib/elasticsearch/api/actions/cat/recovery.rb +9 -2
  21. data/lib/elasticsearch/api/actions/cat/repositories.rb +9 -0
  22. data/lib/elasticsearch/api/actions/cat/segments.rb +19 -1
  23. data/lib/elasticsearch/api/actions/cat/shards.rb +9 -2
  24. data/lib/elasticsearch/api/actions/cat/snapshots.rb +9 -1
  25. data/lib/elasticsearch/api/actions/cat/tasks.rb +10 -2
  26. data/lib/elasticsearch/api/actions/cat/templates.rb +10 -1
  27. data/lib/elasticsearch/api/actions/cat/thread_pool.rb +9 -1
  28. data/lib/elasticsearch/api/actions/cat/transforms.rb +9 -1
  29. data/lib/elasticsearch/api/actions/cluster/get_settings.rb +6 -1
  30. data/lib/elasticsearch/api/actions/connector/delete.rb +1 -1
  31. data/lib/elasticsearch/api/actions/connector/list.rb +2 -2
  32. data/lib/elasticsearch/api/actions/connector/sync_job_list.rb +2 -2
  33. data/lib/elasticsearch/api/actions/cross_cluster_replication/follow.rb +1 -1
  34. data/lib/elasticsearch/api/actions/dangling_indices/delete_dangling_index.rb +1 -1
  35. data/lib/elasticsearch/api/actions/dangling_indices/import_dangling_index.rb +1 -1
  36. data/lib/elasticsearch/api/actions/eql/get.rb +1 -1
  37. data/lib/elasticsearch/api/actions/esql/async_query.rb +1 -1
  38. data/lib/elasticsearch/api/actions/esql/get_query.rb +1 -1
  39. data/lib/elasticsearch/api/actions/esql/list_queries.rb +1 -1
  40. data/lib/elasticsearch/api/actions/esql/query.rb +1 -1
  41. data/lib/elasticsearch/api/actions/fleet/msearch.rb +1 -3
  42. data/lib/elasticsearch/api/actions/get_script.rb +1 -1
  43. data/lib/elasticsearch/api/actions/indices/create_from.rb +0 -1
  44. data/lib/elasticsearch/api/actions/indices/delete_data_lifecycle.rb +1 -1
  45. data/lib/elasticsearch/api/actions/indices/delete_data_stream_options.rb +2 -2
  46. data/lib/elasticsearch/api/actions/indices/explain_data_lifecycle.rb +1 -1
  47. data/lib/elasticsearch/api/actions/indices/forcemerge.rb +1 -1
  48. data/lib/elasticsearch/api/actions/indices/get_data_stream_options.rb +1 -1
  49. data/lib/elasticsearch/api/actions/indices/put_data_stream_options.rb +1 -1
  50. data/lib/elasticsearch/api/actions/indices/put_index_template.rb +1 -1
  51. data/lib/elasticsearch/api/actions/indices/put_mapping.rb +1 -1
  52. data/lib/elasticsearch/api/actions/indices/put_template.rb +1 -1
  53. data/lib/elasticsearch/api/actions/indices/refresh.rb +1 -0
  54. data/lib/elasticsearch/api/actions/indices/simulate_index_template.rb +2 -1
  55. data/lib/elasticsearch/api/actions/indices/simulate_template.rb +1 -1
  56. data/lib/elasticsearch/api/actions/indices/stats.rb +1 -1
  57. data/lib/elasticsearch/api/actions/inference/put.rb +5 -4
  58. data/lib/elasticsearch/api/actions/logstash/put_pipeline.rb +2 -1
  59. data/lib/elasticsearch/api/actions/msearch.rb +1 -3
  60. data/lib/elasticsearch/api/actions/msearch_template.rb +1 -3
  61. data/lib/elasticsearch/api/actions/nodes/stats.rb +1 -1
  62. data/lib/elasticsearch/api/actions/query_rules/list_rulesets.rb +1 -1
  63. data/lib/elasticsearch/api/actions/reindex.rb +6 -1
  64. data/lib/elasticsearch/api/actions/search_mvt.rb +1 -1
  65. data/lib/elasticsearch/api/actions/searchable_snapshots/stats.rb +1 -1
  66. data/lib/elasticsearch/api/actions/security/get_settings.rb +1 -1
  67. data/lib/elasticsearch/api/actions/security/update_settings.rb +1 -1
  68. data/lib/elasticsearch/api/actions/snapshot/get_repository.rb +1 -1
  69. data/lib/elasticsearch/api/actions/sql/get_async.rb +1 -1
  70. data/lib/elasticsearch/api/actions/streams/logs_disable.rb +23 -3
  71. data/lib/elasticsearch/api/actions/streams/logs_enable.rb +26 -3
  72. data/lib/elasticsearch/api/actions/streams/status.rb +20 -3
  73. data/lib/elasticsearch/api/actions/tasks/list.rb +1 -1
  74. data/lib/elasticsearch/api/actions/text_structure/find_structure.rb +1 -3
  75. data/lib/elasticsearch/api/actions/transform/get_node_stats.rb +1 -1
  76. data/lib/elasticsearch/api/actions/transform/set_upgrade_mode.rb +77 -0
  77. data/lib/elasticsearch/api/actions/watcher/get_settings.rb +1 -1
  78. data/lib/elasticsearch/api/actions/watcher/put_watch.rb +1 -0
  79. data/lib/elasticsearch/api/actions/watcher/update_settings.rb +1 -1
  80. data/lib/elasticsearch/api/utils.rb +15 -0
  81. data/lib/elasticsearch/api/version.rb +2 -2
  82. metadata +3 -2
@@ -30,7 +30,6 @@ module Elasticsearch
30
30
  # @option arguments [String, Array] :index A comma-separated list of data streams, indices, and aliases used to limit the request.
31
31
  # Supports wildcards (`*`).
32
32
  # To target all data streams and indices, omit this parameter or use `*` or `_all`.
33
- # @option arguments [String] :bytes The unit used to display byte values.
34
33
  # @option arguments [String, Array<String>] :h A comma-separated list of columns names to display.
35
34
  # It supports simple wildcards. Server default: ip,hp,rp,r,m,n,cpu,l.
36
35
  # @option arguments [String, Array<String>] :s A comma-separated list of column names or aliases that determines the sort order.
@@ -41,11 +40,30 @@ module Elasticsearch
41
40
  # from the cluster state of the master node. In both cases the coordinating
42
41
  # node will send requests for further information to each selected node.
43
42
  # @option arguments [Time] :master_timeout Period to wait for a connection to the master node. Server default: 30s.
43
+ # @option arguments [String, Array<String>] :expand_wildcards Type of index that wildcard expressions can match. If the request can target data streams, this argument
44
+ # determines whether wildcard expressions match hidden data streams. Supports comma-separated values,
45
+ # such as open,hidden. Server default: open.
46
+ # @option arguments [Boolean] :allow_no_indices If false, the request returns an error if any wildcard expression, index alias, or _all value targets only
47
+ # missing or closed indices. This behavior applies even if the request targets other open indices. For example,
48
+ # a request targeting foo*,bar* returns an error if an index starts with foo but no index starts with bar. Server default: true.
49
+ # @option arguments [Boolean] :ignore_throttled If true, concrete, expanded or aliased indices are ignored when frozen.
50
+ # @option arguments [Boolean] :ignore_unavailable If true, missing or closed indices are not included in the response.
51
+ # @option arguments [Boolean] :allow_closed If true, allow closed indices to be returned in the response otherwise if false, keep the legacy behaviour
52
+ # of throwing an exception if index pattern matches closed indices
44
53
  # @option arguments [String] :format Specifies the format to return the columnar data in, can be set to
45
54
  # `text`, `json`, `cbor`, `yaml`, or `smile`. Server default: text.
46
55
  # @option arguments [Boolean] :help When set to `true` will output available columns. This option
47
56
  # can't be combined with any other query string option.
48
57
  # @option arguments [Boolean] :v When set to `true` will enable verbose output.
58
+ # @option arguments [String] :bytes Sets the units for columns that contain a byte-size value.
59
+ # Note that byte-size value units work in terms of powers of 1024. For instance `1kb` means 1024 bytes, not 1000 bytes.
60
+ # If omitted, byte-size values are rendered with a suffix such as `kb`, `mb`, or `gb`, chosen such that the numeric value of the column is as small as possible whilst still being at least `1.0`.
61
+ # If given, byte-size values are rendered as an integer with no suffix, representing the value of the column in the chosen unit.
62
+ # Values that are not an exact multiple of the chosen unit are rounded down.
63
+ # @option arguments [String] :time Sets the units for columns that contain a time duration.
64
+ # If omitted, time duration values are rendered with a suffix such as `ms`, `s`, `m` or `h`, chosen such that the numeric value of the column is as small as possible whilst still being at least `1.0`.
65
+ # If given, time duration values are rendered as an integer with no suffix.
66
+ # Values that are not an exact multiple of the chosen unit are rounded down.
49
67
  # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors
50
68
  # when they occur.
51
69
  # @option arguments [String, Array<String>] :filter_path Comma-separated list of filters in dot notation which reduce the response
@@ -30,18 +30,25 @@ module Elasticsearch
30
30
  # @option arguments [String, Array] :index A comma-separated list of data streams, indices, and aliases used to limit the request.
31
31
  # Supports wildcards (`*`).
32
32
  # To target all data streams and indices, omit this parameter or use `*` or `_all`.
33
- # @option arguments [String] :bytes The unit used to display byte values.
34
33
  # @option arguments [String, Array<String>] :h List of columns to appear in the response. Supports simple wildcards.
35
34
  # @option arguments [String, Array<String>] :s A comma-separated list of column names or aliases that determines the sort order.
36
35
  # Sorting defaults to ascending and can be changed by setting `:asc`
37
36
  # or `:desc` as a suffix to the column name.
38
37
  # @option arguments [Time] :master_timeout The period to wait for a connection to the master node. Server default: 30s.
39
- # @option arguments [String] :time The unit used to display time values.
40
38
  # @option arguments [String] :format Specifies the format to return the columnar data in, can be set to
41
39
  # `text`, `json`, `cbor`, `yaml`, or `smile`. Server default: text.
42
40
  # @option arguments [Boolean] :help When set to `true` will output available columns. This option
43
41
  # can't be combined with any other query string option.
44
42
  # @option arguments [Boolean] :v When set to `true` will enable verbose output.
43
+ # @option arguments [String] :bytes Sets the units for columns that contain a byte-size value.
44
+ # Note that byte-size value units work in terms of powers of 1024. For instance `1kb` means 1024 bytes, not 1000 bytes.
45
+ # If omitted, byte-size values are rendered with a suffix such as `kb`, `mb`, or `gb`, chosen such that the numeric value of the column is as small as possible whilst still being at least `1.0`.
46
+ # If given, byte-size values are rendered as an integer with no suffix, representing the value of the column in the chosen unit.
47
+ # Values that are not an exact multiple of the chosen unit are rounded down.
48
+ # @option arguments [String] :time Sets the units for columns that contain a time duration.
49
+ # If omitted, time duration values are rendered with a suffix such as `ms`, `s`, `m` or `h`, chosen such that the numeric value of the column is as small as possible whilst still being at least `1.0`.
50
+ # If given, time duration values are rendered as an integer with no suffix.
51
+ # Values that are not an exact multiple of the chosen unit are rounded down.
45
52
  # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors
46
53
  # when they occur.
47
54
  # @option arguments [String, Array<String>] :filter_path Comma-separated list of filters in dot notation which reduce the response
@@ -38,12 +38,20 @@ module Elasticsearch
38
38
  # Sorting defaults to ascending and can be changed by setting `:asc`
39
39
  # or `:desc` as a suffix to the column name.
40
40
  # @option arguments [Time] :master_timeout Period to wait for a connection to the master node. Server default: 30s.
41
- # @option arguments [String] :time Unit used to display time values.
42
41
  # @option arguments [String] :format Specifies the format to return the columnar data in, can be set to
43
42
  # `text`, `json`, `cbor`, `yaml`, or `smile`. Server default: text.
44
43
  # @option arguments [Boolean] :help When set to `true` will output available columns. This option
45
44
  # can't be combined with any other query string option.
46
45
  # @option arguments [Boolean] :v When set to `true` will enable verbose output.
46
+ # @option arguments [String] :bytes Sets the units for columns that contain a byte-size value.
47
+ # Note that byte-size value units work in terms of powers of 1024. For instance `1kb` means 1024 bytes, not 1000 bytes.
48
+ # If omitted, byte-size values are rendered with a suffix such as `kb`, `mb`, or `gb`, chosen such that the numeric value of the column is as small as possible whilst still being at least `1.0`.
49
+ # If given, byte-size values are rendered as an integer with no suffix, representing the value of the column in the chosen unit.
50
+ # Values that are not an exact multiple of the chosen unit are rounded down.
51
+ # @option arguments [String] :time Sets the units for columns that contain a time duration.
52
+ # If omitted, time duration values are rendered with a suffix such as `ms`, `s`, `m` or `h`, chosen such that the numeric value of the column is as small as possible whilst still being at least `1.0`.
53
+ # If given, time duration values are rendered as an integer with no suffix.
54
+ # Values that are not an exact multiple of the chosen unit are rounded down.
47
55
  # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors
48
56
  # when they occur.
49
57
  # @option arguments [String, Array<String>] :filter_path Comma-separated list of filters in dot notation which reduce the response
@@ -34,11 +34,10 @@ module Elasticsearch
34
34
  # @option arguments [Boolean] :detailed If `true`, the response includes detailed information about shard recoveries.
35
35
  # @option arguments [Array<String>] :nodes Unique node identifiers, which are used to limit the response.
36
36
  # @option arguments [String] :parent_task_id The parent task identifier, which is used to limit the response.
37
- # @option arguments [String, Array<String>] :h List of columns to appear in the response. Supports simple wildcards.
37
+ # @option arguments [String, Array<String>] :h A comma-separated list of columns names to display. It supports simple wildcards.
38
38
  # @option arguments [String, Array<String>] :s List of columns that determine how the table should be sorted.
39
39
  # Sorting defaults to ascending and can be changed by setting `:asc`
40
40
  # or `:desc` as a suffix to the column name.
41
- # @option arguments [String] :time Unit used to display time values.
42
41
  # @option arguments [Time] :timeout Period to wait for a response.
43
42
  # If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s.
44
43
  # @option arguments [Boolean] :wait_for_completion If `true`, the request blocks until the task has completed.
@@ -47,6 +46,15 @@ module Elasticsearch
47
46
  # @option arguments [Boolean] :help When set to `true` will output available columns. This option
48
47
  # can't be combined with any other query string option.
49
48
  # @option arguments [Boolean] :v When set to `true` will enable verbose output.
49
+ # @option arguments [String] :bytes Sets the units for columns that contain a byte-size value.
50
+ # Note that byte-size value units work in terms of powers of 1024. For instance `1kb` means 1024 bytes, not 1000 bytes.
51
+ # If omitted, byte-size values are rendered with a suffix such as `kb`, `mb`, or `gb`, chosen such that the numeric value of the column is as small as possible whilst still being at least `1.0`.
52
+ # If given, byte-size values are rendered as an integer with no suffix, representing the value of the column in the chosen unit.
53
+ # Values that are not an exact multiple of the chosen unit are rounded down.
54
+ # @option arguments [String] :time Sets the units for columns that contain a time duration.
55
+ # If omitted, time duration values are rendered with a suffix such as `ms`, `s`, `m` or `h`, chosen such that the numeric value of the column is as small as possible whilst still being at least `1.0`.
56
+ # If given, time duration values are rendered as an integer with no suffix.
57
+ # Values that are not an exact multiple of the chosen unit are rounded down.
50
58
  # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors
51
59
  # when they occur.
52
60
  # @option arguments [String, Array<String>] :filter_path Comma-separated list of filters in dot notation which reduce the response
@@ -29,7 +29,7 @@ module Elasticsearch
29
29
  #
30
30
  # @option arguments [String] :name The name of the template to return.
31
31
  # Accepts wildcard expressions. If omitted, all templates are returned.
32
- # @option arguments [String, Array<String>] :h List of columns to appear in the response. Supports simple wildcards.
32
+ # @option arguments [String, Array<String>] :h A comma-separated list of columns names to display. It supports simple wildcards.
33
33
  # @option arguments [String, Array<String>] :s List of columns that determine how the table should be sorted.
34
34
  # Sorting defaults to ascending and can be changed by setting `:asc`
35
35
  # or `:desc` as a suffix to the column name.
@@ -43,6 +43,15 @@ module Elasticsearch
43
43
  # @option arguments [Boolean] :help When set to `true` will output available columns. This option
44
44
  # can't be combined with any other query string option.
45
45
  # @option arguments [Boolean] :v When set to `true` will enable verbose output.
46
+ # @option arguments [String] :bytes Sets the units for columns that contain a byte-size value.
47
+ # Note that byte-size value units work in terms of powers of 1024. For instance `1kb` means 1024 bytes, not 1000 bytes.
48
+ # If omitted, byte-size values are rendered with a suffix such as `kb`, `mb`, or `gb`, chosen such that the numeric value of the column is as small as possible whilst still being at least `1.0`.
49
+ # If given, byte-size values are rendered as an integer with no suffix, representing the value of the column in the chosen unit.
50
+ # Values that are not an exact multiple of the chosen unit are rounded down.
51
+ # @option arguments [String] :time Sets the units for columns that contain a time duration.
52
+ # If omitted, time duration values are rendered with a suffix such as `ms`, `s`, `m` or `h`, chosen such that the numeric value of the column is as small as possible whilst still being at least `1.0`.
53
+ # If given, time duration values are rendered as an integer with no suffix.
54
+ # Values that are not an exact multiple of the chosen unit are rounded down.
46
55
  # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors
47
56
  # when they occur.
48
57
  # @option arguments [String, Array<String>] :filter_path Comma-separated list of filters in dot notation which reduce the response
@@ -33,7 +33,6 @@ module Elasticsearch
33
33
  # @option arguments [String, Array<String>] :s A comma-separated list of column names or aliases that determines the sort order.
34
34
  # Sorting defaults to ascending and can be changed by setting `:asc`
35
35
  # or `:desc` as a suffix to the column name.
36
- # @option arguments [String] :time The unit used to display time values.
37
36
  # @option arguments [Boolean] :local If `true`, the request computes the list of selected nodes from the
38
37
  # local cluster state. If `false` the list of selected nodes are computed
39
38
  # from the cluster state of the master node. In both cases the coordinating
@@ -44,6 +43,15 @@ module Elasticsearch
44
43
  # @option arguments [Boolean] :help When set to `true` will output available columns. This option
45
44
  # can't be combined with any other query string option.
46
45
  # @option arguments [Boolean] :v When set to `true` will enable verbose output.
46
+ # @option arguments [String] :bytes Sets the units for columns that contain a byte-size value.
47
+ # Note that byte-size value units work in terms of powers of 1024. For instance `1kb` means 1024 bytes, not 1000 bytes.
48
+ # If omitted, byte-size values are rendered with a suffix such as `kb`, `mb`, or `gb`, chosen such that the numeric value of the column is as small as possible whilst still being at least `1.0`.
49
+ # If given, byte-size values are rendered as an integer with no suffix, representing the value of the column in the chosen unit.
50
+ # Values that are not an exact multiple of the chosen unit are rounded down.
51
+ # @option arguments [String] :time Sets the units for columns that contain a time duration.
52
+ # If omitted, time duration values are rendered with a suffix such as `ms`, `s`, `m` or `h`, chosen such that the numeric value of the column is as small as possible whilst still being at least `1.0`.
53
+ # If given, time duration values are rendered as an integer with no suffix.
54
+ # Values that are not an exact multiple of the chosen unit are rounded down.
47
55
  # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors
48
56
  # when they occur.
49
57
  # @option arguments [String, Array<String>] :filter_path Comma-separated list of filters in dot notation which reduce the response
@@ -36,13 +36,21 @@ module Elasticsearch
36
36
  # @option arguments [Integer] :from Skips the specified number of transforms. Server default: 0.
37
37
  # @option arguments [String, Array<String>] :h Comma-separated list of column names to display. Server default: changes_last_detection_time,checkpoint,checkpoint_progress,documents_processed,id,last_search_time,state.
38
38
  # @option arguments [String, Array<String>] :s Comma-separated list of column names or column aliases used to sort the response.
39
- # @option arguments [String] :time The unit used to display time values.
40
39
  # @option arguments [Integer] :size The maximum number of transforms to obtain. Server default: 100.
41
40
  # @option arguments [String] :format Specifies the format to return the columnar data in, can be set to
42
41
  # `text`, `json`, `cbor`, `yaml`, or `smile`. Server default: text.
43
42
  # @option arguments [Boolean] :help When set to `true` will output available columns. This option
44
43
  # can't be combined with any other query string option.
45
44
  # @option arguments [Boolean] :v When set to `true` will enable verbose output.
45
+ # @option arguments [String] :bytes Sets the units for columns that contain a byte-size value.
46
+ # Note that byte-size value units work in terms of powers of 1024. For instance `1kb` means 1024 bytes, not 1000 bytes.
47
+ # If omitted, byte-size values are rendered with a suffix such as `kb`, `mb`, or `gb`, chosen such that the numeric value of the column is as small as possible whilst still being at least `1.0`.
48
+ # If given, byte-size values are rendered as an integer with no suffix, representing the value of the column in the chosen unit.
49
+ # Values that are not an exact multiple of the chosen unit are rounded down.
50
+ # @option arguments [String] :time Sets the units for columns that contain a time duration.
51
+ # If omitted, time duration values are rendered with a suffix such as `ms`, `s`, `m` or `h`, chosen such that the numeric value of the column is as small as possible whilst still being at least `1.0`.
52
+ # If given, time duration values are rendered as an integer with no suffix.
53
+ # Values that are not an exact multiple of the chosen unit are rounded down.
46
54
  # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors
47
55
  # when they occur.
48
56
  # @option arguments [String, Array<String>] :filter_path Comma-separated list of filters in dot notation which reduce the response
@@ -26,7 +26,12 @@ module Elasticsearch
26
26
  # By default, it returns only settings that have been explicitly defined.
27
27
  #
28
28
  # @option arguments [Boolean] :flat_settings If `true`, returns settings in flat format.
29
- # @option arguments [Boolean] :include_defaults If `true`, returns default cluster settings from the local node.
29
+ # @option arguments [Boolean] :include_defaults If `true`, also returns default values for all other cluster settings, reflecting the values
30
+ # in the `elasticsearch.yml` file of one of the nodes in the cluster. If the nodes in your
31
+ # cluster do not all have the same values in their `elasticsearch.yml` config files then the
32
+ # values returned by this API may vary from invocation to invocation and may not reflect the
33
+ # values that Elasticsearch uses in all situations. Use the `GET _nodes/settings` API to
34
+ # fetch the settings for each individual node in your cluster.
30
35
  # @option arguments [Time] :master_timeout Period to wait for a connection to the master node.
31
36
  # If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s.
32
37
  # @option arguments [Time] :timeout Period to wait for a response.
@@ -33,7 +33,7 @@ module Elasticsearch
33
33
  # SLA of official GA features.
34
34
  #
35
35
  # @option arguments [String] :connector_id The unique identifier of the connector to be deleted (*Required*)
36
- # @option arguments [Boolean] :delete_sync_jobs A flag indicating if associated sync jobs should be also removed. Defaults to false.
36
+ # @option arguments [Boolean] :delete_sync_jobs A flag indicating if associated sync jobs should be also removed.
37
37
  # @option arguments [Boolean] :hard A flag indicating if the connector should be hard deleted.
38
38
  # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors
39
39
  # when they occur.
@@ -29,8 +29,8 @@ module Elasticsearch
29
29
  # as-is with no warranties. Beta features are not subject to the support
30
30
  # SLA of official GA features.
31
31
  #
32
- # @option arguments [Integer] :from Starting offset (default: 0)
33
- # @option arguments [Integer] :size Specifies a max number of results to get
32
+ # @option arguments [Integer] :from Starting offset Server default: 0.
33
+ # @option arguments [Integer] :size Specifies a max number of results to get Server default: 100.
34
34
  # @option arguments [String, Array] :index_name A comma-separated list of connector index names to fetch connector documents for
35
35
  # @option arguments [String, Array<String>] :connector_name A comma-separated list of connector names to fetch connector documents for
36
36
  # @option arguments [String, Array<String>] :service_type A comma-separated list of connector service types to fetch connector documents for
@@ -29,8 +29,8 @@ module Elasticsearch
29
29
  # as-is with no warranties. Beta features are not subject to the support
30
30
  # SLA of official GA features.
31
31
  #
32
- # @option arguments [Integer] :from Starting offset (default: 0)
33
- # @option arguments [Integer] :size Specifies a max number of results to get
32
+ # @option arguments [Integer] :from Starting offset Server default: 0.
33
+ # @option arguments [Integer] :size Specifies a max number of results to get Server default: 100.
34
34
  # @option arguments [String] :status A sync job status to fetch connector sync jobs for
35
35
  # @option arguments [String] :connector_id A connector id to fetch connector sync jobs for
36
36
  # @option arguments [String, Array<String>] :job_type A comma-separated list of job types to fetch the sync jobs for
@@ -31,7 +31,7 @@ module Elasticsearch
31
31
  # @option arguments [Integer, String] :wait_for_active_shards Specifies the number of shards to wait on being active before responding. This defaults to waiting on none of the shards to be
32
32
  # active.
33
33
  # A shard must be restored from the leader index before being active. Restoring a follower shard requires transferring all the
34
- # remote Lucene segment files to the follower index.
34
+ # remote Lucene segment files to the follower index. Server default: 0.
35
35
  # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors
36
36
  # when they occur.
37
37
  # @option arguments [String, Array<String>] :filter_path Comma-separated list of filters in dot notation which reduce the response
@@ -28,7 +28,7 @@ module Elasticsearch
28
28
  #
29
29
  # @option arguments [String] :index_uuid The UUID of the index to delete. Use the get dangling indices API to find the UUID. (*Required*)
30
30
  # @option arguments [Boolean] :accept_data_loss This parameter must be set to true to acknowledge that it will no longer be possible to recove data from the dangling index. (*Required*)
31
- # @option arguments [Time] :master_timeout Specify timeout for connection to master
31
+ # @option arguments [Time] :master_timeout Specify timeout for connection to master Server default: 30s.
32
32
  # @option arguments [Time] :timeout Explicit operation timeout
33
33
  # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors
34
34
  # when they occur.
@@ -29,7 +29,7 @@ module Elasticsearch
29
29
  # @option arguments [String] :index_uuid The UUID of the index to import. Use the get dangling indices API to locate the UUID. (*Required*)
30
30
  # @option arguments [Boolean] :accept_data_loss This parameter must be set to true to import a dangling index.
31
31
  # Because Elasticsearch cannot know where the dangling index data came from or determine which shard copies are fresh and which are stale, it cannot guarantee that the imported data represents the latest state of the index when it was last in the cluster. (*Required*)
32
- # @option arguments [Time] :master_timeout Specify timeout for connection to master
32
+ # @option arguments [Time] :master_timeout Specify timeout for connection to master Server default: 30s.
33
33
  # @option arguments [Time] :timeout Explicit operation timeout
34
34
  # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors
35
35
  # when they occur.
@@ -27,7 +27,7 @@ module Elasticsearch
27
27
  #
28
28
  # @option arguments [String] :id Identifier for the search. (*Required*)
29
29
  # @option arguments [Time] :keep_alive Period for which the search and its results are stored on the cluster.
30
- # Defaults to the keep_alive value set by the search’s EQL search API request.
30
+ # Defaults to the keep_alive value set by the search’s EQL search API request. Server default: 5d.
31
31
  # @option arguments [Time] :wait_for_completion_timeout Timeout duration to wait for the request to finish.
32
32
  # Defaults to no timeout, meaning the request waits for complete search results.
33
33
  # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors
@@ -29,7 +29,7 @@ module Elasticsearch
29
29
  # @option arguments [Boolean] :allow_partial_results If `true`, partial results will be returned if there are shard failures, but the query can continue to execute on other clusters and shards.
30
30
  # If `false`, the query will fail if there are any failures.To override the default behavior, you can set the `esql.query.allow_partial_results` cluster setting to `false`. Server default: true.
31
31
  # @option arguments [String] :delimiter The character to use between values within a CSV row.
32
- # It is valid only for the CSV format.
32
+ # It is valid only for the CSV format. Server default: ,.
33
33
  # @option arguments [Boolean] :drop_null_columns Indicates whether columns that are entirely `null` will be removed from the `columns` and `values` portion of the results.
34
34
  # If `true`, the response will include an extra section under the name `all_columns` which has the name of all the columns.
35
35
  # @option arguments [String] :format A short version of the Accept header, e.g. json, yaml.`csv`, `tsv`, and `txt` formats will return results in a tabular format, excluding other metadata fields from the response.For async requests, nothing will be returned if the async query doesn't finish within the timeout.
@@ -43,7 +43,7 @@ module Elasticsearch
43
43
  # this option for debugging only.
44
44
  # @option arguments [Hash] :headers Custom HTTP headers
45
45
  #
46
- # @see [TODO]
46
+ # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-esql-get-query
47
47
  #
48
48
  def get_query(arguments = {})
49
49
  request_opts = { endpoint: arguments[:endpoint] || 'esql.get_query' }
@@ -42,7 +42,7 @@ module Elasticsearch
42
42
  # this option for debugging only.
43
43
  # @option arguments [Hash] :headers Custom HTTP headers
44
44
  #
45
- # @see [TODO]
45
+ # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-esql-list-queries
46
46
  #
47
47
  def list_queries(arguments = {})
48
48
  request_opts = { endpoint: arguments[:endpoint] || 'esql.list_queries' }
@@ -29,7 +29,7 @@ module Elasticsearch
29
29
  # library is upgraded.
30
30
  #
31
31
  # @option arguments [String] :format A short version of the Accept header, e.g. json, yaml.`csv`, `tsv`, and `txt` formats will return results in a tabular format, excluding other metadata fields from the response.
32
- # @option arguments [String] :delimiter The character to use between values within a CSV row. Only valid for the CSV format.
32
+ # @option arguments [String] :delimiter The character to use between values within a CSV row. Only valid for the CSV format. Server default: ,.
33
33
  # @option arguments [Boolean] :drop_null_columns Should columns that are entirely `null` be removed from the `columns` and `values` portion of the results?
34
34
  # Defaults to `false`. If `true` then the response will include an extra section under the name `all_columns` which has the name of all columns.
35
35
  # @option arguments [Boolean] :allow_partial_results If `true`, partial results will be returned if there are shard failures, but the query can continue to execute on other clusters and shards.
@@ -108,9 +108,7 @@ module Elasticsearch
108
108
  payload = body
109
109
  end
110
110
 
111
- headers.merge!({
112
- 'Content-Type' => 'application/vnd.elasticsearch+x-ndjson; compatible-with=9'
113
- })
111
+ Utils.update_ndjson_headers!(headers, client.transport.options.dig(:transport_options, :headers))
114
112
  Elasticsearch::API::Response.new(
115
113
  perform_request(method, path, params, payload, headers, request_opts)
116
114
  )
@@ -27,7 +27,7 @@ module Elasticsearch
27
27
  # @option arguments [String] :id The identifier for the stored script or search template. (*Required*)
28
28
  # @option arguments [Time] :master_timeout The period to wait for the master node.
29
29
  # If the master node is not available before the timeout expires, the request fails and returns an error.
30
- # It can also be set to `-1` to indicate that the request should never timeout. Server default: .
30
+ # It can also be set to `-1` to indicate that the request should never timeout. Server default: 30s.
31
31
  # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors
32
32
  # when they occur.
33
33
  # @option arguments [String, Array<String>] :filter_path Comma-separated list of filters in dot notation which reduce the response
@@ -55,7 +55,6 @@ module Elasticsearch
55
55
  end
56
56
  request_opts[:defined_params] = defined_params unless defined_params.empty?
57
57
 
58
- raise ArgumentError, "Required argument 'body' missing" unless arguments[:body]
59
58
  raise ArgumentError, "Required argument 'source' missing" unless arguments[:source]
60
59
  raise ArgumentError, "Required argument 'dest' missing" unless arguments[:dest]
61
60
 
@@ -27,7 +27,7 @@ module Elasticsearch
27
27
  #
28
28
  # @option arguments [String, Array<String>] :name A comma-separated list of data streams of which the data stream lifecycle will be deleted; use `*` to get all data streams (*Required*)
29
29
  # @option arguments [String, Array<String>] :expand_wildcards Whether wildcard expressions should get expanded to open or closed indices (default: open)
30
- # @option arguments [Time] :master_timeout Specify timeout for connection to master
30
+ # @option arguments [Time] :master_timeout Specify timeout for connection to master Server default: 30s.
31
31
  # @option arguments [Time] :timeout Explicit timestamp for the document
32
32
  # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors
33
33
  # when they occur.
@@ -27,7 +27,7 @@ module Elasticsearch
27
27
  #
28
28
  # @option arguments [String, Array<String>] :name A comma-separated list of data streams of which the data stream options will be deleted; use `*` to get all data streams (*Required*)
29
29
  # @option arguments [String, Array<String>] :expand_wildcards Whether wildcard expressions should get expanded to open or closed indices (default: open)
30
- # @option arguments [Time] :master_timeout Specify timeout for connection to master
30
+ # @option arguments [Time] :master_timeout Specify timeout for connection to master Server default: 30s.
31
31
  # @option arguments [Time] :timeout Explicit timestamp for the document
32
32
  # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors
33
33
  # when they occur.
@@ -42,7 +42,7 @@ module Elasticsearch
42
42
  # this option for debugging only.
43
43
  # @option arguments [Hash] :headers Custom HTTP headers
44
44
  #
45
- # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/index.html
45
+ # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-indices-delete-data-stream-options
46
46
  #
47
47
  def delete_data_stream_options(arguments = {})
48
48
  request_opts = { endpoint: arguments[:endpoint] || 'indices.delete_data_stream_options' }
@@ -27,7 +27,7 @@ module Elasticsearch
27
27
  #
28
28
  # @option arguments [String, Array] :index The name of the index to explain (*Required*)
29
29
  # @option arguments [Boolean] :include_defaults indicates if the API should return the default values the system uses for the index's lifecycle
30
- # @option arguments [Time] :master_timeout Specify timeout for connection to master
30
+ # @option arguments [Time] :master_timeout Specify timeout for connection to master Server default: 30s.
31
31
  # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors
32
32
  # when they occur.
33
33
  # @option arguments [String, Array<String>] :filter_path Comma-separated list of filters in dot notation which reduce the response
@@ -70,7 +70,7 @@ module Elasticsearch
70
70
  # @option arguments [Boolean] :ignore_unavailable Whether specified concrete indices should be ignored when unavailable (missing or closed)
71
71
  # @option arguments [Integer] :max_num_segments The number of segments the index should be merged into (default: dynamic)
72
72
  # @option arguments [Boolean] :only_expunge_deletes Specify whether the operation should only expunge deleted documents
73
- # @option arguments [Boolean] :wait_for_completion Should the request wait until the force merge is completed.
73
+ # @option arguments [Boolean] :wait_for_completion Should the request wait until the force merge is completed. Server default: true.
74
74
  # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors
75
75
  # when they occur.
76
76
  # @option arguments [String, Array<String>] :filter_path Comma-separated list of filters in dot notation which reduce the response
@@ -44,7 +44,7 @@ module Elasticsearch
44
44
  # this option for debugging only.
45
45
  # @option arguments [Hash] :headers Custom HTTP headers
46
46
  #
47
- # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/index.html
47
+ # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-indices-get-data-stream-options
48
48
  #
49
49
  def get_data_stream_options(arguments = {})
50
50
  request_opts = { endpoint: arguments[:endpoint] || 'indices.get_data_stream_options' }
@@ -49,7 +49,7 @@ module Elasticsearch
49
49
  # @option arguments [Hash] :headers Custom HTTP headers
50
50
  # @option arguments [Hash] :body request body
51
51
  #
52
- # @see https://www.elastic.co/guide/en/elasticsearch/reference/current/index.html
52
+ # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-indices-put-data-stream-options
53
53
  #
54
54
  def put_data_stream_options(arguments = {})
55
55
  request_opts = { endpoint: arguments[:endpoint] || 'indices.put_data_stream_options' }
@@ -48,7 +48,7 @@ module Elasticsearch
48
48
  # @option arguments [Boolean] :create If `true`, this request cannot replace or update existing index templates.
49
49
  # @option arguments [Time] :master_timeout Period to wait for a connection to the master node.
50
50
  # If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s.
51
- # @option arguments [String] :cause User defined reason for creating/updating the index template
51
+ # @option arguments [String] :cause User defined reason for creating/updating the index template Server default: api.
52
52
  # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors
53
53
  # when they occur.
54
54
  # @option arguments [String, Array<String>] :filter_path Comma-separated list of filters in dot notation which reduce the response
@@ -32,7 +32,7 @@ module Elasticsearch
32
32
  # - Update supported mapping parameters
33
33
  # - Change a field's mapping using reindexing
34
34
  # - Rename a field using a field alias
35
- # Learn how to use the update mapping API with practical examples in the {https://www.elastic.co/docs//manage-data/data-store/mapping/update-mappings-examples Update mapping API examples} guide.
35
+ # Learn how to use the update mapping API with practical examples in the {https://www.elastic.co/docs/manage-data/data-store/mapping/update-mappings-examples Update mapping API examples} guide.
36
36
  #
37
37
  # @option arguments [String, Array] :index A comma-separated list of index names the mapping should be added to (supports wildcards); use `_all` or omit to add the mapping on all indices. (*Required*)
38
38
  # @option arguments [Boolean] :allow_no_indices If `false`, the request returns an error if any wildcard expression, index alias, or `_all` value targets only missing or closed indices.
@@ -45,7 +45,7 @@ module Elasticsearch
45
45
  # @option arguments [Integer] :order Order in which Elasticsearch applies this template if index
46
46
  # matches multiple templates.Templates with lower 'order' values are merged first. Templates with higher
47
47
  # 'order' values are merged later, overriding templates with lower values.
48
- # @option arguments [String] :cause User defined reason for creating/updating the index template
48
+ # @option arguments [String] :cause User defined reason for creating/updating the index template Server default: .
49
49
  # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors
50
50
  # when they occur.
51
51
  # @option arguments [String, Array<String>] :filter_path Comma-separated list of filters in dot notation which reduce the response
@@ -27,6 +27,7 @@ module Elasticsearch
27
27
  # For data streams, the API runs the refresh operation on the stream’s backing indices.
28
28
  # By default, Elasticsearch periodically refreshes indices every second, but only on indices that have received one search request or more in the last 30 seconds.
29
29
  # You can change this default interval with the `index.refresh_interval` setting.
30
+ # In Elastic Cloud Serverless, the default refresh interval is 5 seconds across all indices.
30
31
  # Refresh requests are synchronous and do not return a response until the refresh operation completes.
31
32
  # Refreshes are resource-intensive.
32
33
  # To ensure good cluster performance, it's recommended to wait for Elasticsearch's periodic refresh rather than performing an explicit refresh when possible.
@@ -42,6 +42,7 @@ module Elasticsearch
42
42
  # @option arguments [Boolean] :pretty If set to `true` the returned JSON will be "pretty-formatted". Only use
43
43
  # this option for debugging only.
44
44
  # @option arguments [Hash] :headers Custom HTTP headers
45
+ # @option arguments [Hash] :body index_template
45
46
  #
46
47
  # @see https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-indices-simulate-index-template
47
48
  #
@@ -58,7 +59,7 @@ module Elasticsearch
58
59
  arguments = arguments.clone
59
60
  headers = arguments.delete(:headers) || {}
60
61
 
61
- body = nil
62
+ body = arguments.delete(:body)
62
63
 
63
64
  _name = arguments.delete(:name)
64
65
 
@@ -28,7 +28,7 @@ module Elasticsearch
28
28
  # @option arguments [String] :name Name of the index template to simulate. To test a template configuration before you add it to the cluster, omit
29
29
  # this parameter and specify the template configuration in the request body.
30
30
  # @option arguments [Boolean] :create If true, the template passed in the body is only used if no existing templates match the same index patterns. If false, the simulation uses the template with the highest priority. Note that the template is not permanently added or updated in either case; it is only used for the simulation.
31
- # @option arguments [String] :cause User defined reason for dry-run creating the new template for simulation purposes
31
+ # @option arguments [String] :cause User defined reason for dry-run creating the new template for simulation purposes Server default: false.
32
32
  # @option arguments [Time] :master_timeout Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s.
33
33
  # @option arguments [Boolean] :include_defaults If true, returns all relevant default configurations for the index template.
34
34
  # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors
@@ -43,7 +43,7 @@ module Elasticsearch
43
43
  # @option arguments [String, Array<String>] :groups Comma-separated list of search groups to include in the search statistics.
44
44
  # @option arguments [Boolean] :include_segment_file_sizes If true, the call reports the aggregated disk usage of each one of the Lucene index files (only applies if segment stats are requested).
45
45
  # @option arguments [Boolean] :include_unloaded_segments If true, the response includes information from segments that are not loaded into memory.
46
- # @option arguments [String] :level Indicates whether statistics are aggregated at the cluster, index, or shard level.
46
+ # @option arguments [String] :level Indicates whether statistics are aggregated at the cluster, indices, or shards level. Server default: indices.
47
47
  # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors
48
48
  # when they occur.
49
49
  # @option arguments [String, Array<String>] :filter_path Comma-separated list of filters in dot notation which reduce the response
@@ -34,17 +34,18 @@ module Elasticsearch
34
34
  # * Azure AI Studio (`completion`, `text_embedding`)
35
35
  # * Azure OpenAI (`completion`, `text_embedding`)
36
36
  # * Cohere (`completion`, `rerank`, `text_embedding`)
37
- # * DeepSeek (`completion`, `chat_completion`)
37
+ # * DeepSeek (`chat_completion`, `completion`)
38
38
  # * Elasticsearch (`rerank`, `sparse_embedding`, `text_embedding` - this service is for built-in models and models uploaded through Eland)
39
39
  # * ELSER (`sparse_embedding`)
40
40
  # * Google AI Studio (`completion`, `text_embedding`)
41
- # * Google Vertex AI (`rerank`, `text_embedding`)
41
+ # * Google Vertex AI (`chat_completion`, `completion`, `rerank`, `text_embedding`)
42
42
  # * Hugging Face (`chat_completion`, `completion`, `rerank`, `text_embedding`)
43
+ # * JinaAI (`rerank`, `text_embedding`)
44
+ # * Llama (`chat_completion`, `completion`, `text_embedding`)
43
45
  # * Mistral (`chat_completion`, `completion`, `text_embedding`)
44
46
  # * OpenAI (`chat_completion`, `completion`, `text_embedding`)
45
- # * VoyageAI (`text_embedding`, `rerank`)
47
+ # * VoyageAI (`rerank`, `text_embedding`)
46
48
  # * Watsonx inference integration (`text_embedding`)
47
- # * JinaAI (`text_embedding`, `rerank`)
48
49
  #
49
50
  # @option arguments [String] :task_type The task type. Refer to the integration list in the API description for the available task types.
50
51
  # @option arguments [String] :inference_id The inference Id (*Required*)
@@ -26,7 +26,8 @@ module Elasticsearch
26
26
  # Create a pipeline that is used for Logstash Central Management.
27
27
  # If the specified pipeline exists, it is replaced.
28
28
  #
29
- # @option arguments [String] :id An identifier for the pipeline. (*Required*)
29
+ # @option arguments [String] :id An identifier for the pipeline.
30
+ # Pipeline IDs must begin with a letter or underscore and contain only letters, underscores, dashes, hyphens and numbers. (*Required*)
30
31
  # @option arguments [Boolean] :error_trace When set to `true` Elasticsearch will include the full stack trace of errors
31
32
  # when they occur.
32
33
  # @option arguments [String, Array<String>] :filter_path Comma-separated list of filters in dot notation which reduce the response
@@ -120,9 +120,7 @@ module Elasticsearch
120
120
  payload = body
121
121
  end
122
122
 
123
- headers.merge!({
124
- 'Content-Type' => 'application/vnd.elasticsearch+x-ndjson; compatible-with=9'
125
- })
123
+ Utils.update_ndjson_headers!(headers, transport.options.dig(:transport_options, :headers))
126
124
  Elasticsearch::API::Response.new(
127
125
  perform_request(method, path, params, payload, headers, request_opts)
128
126
  )
@@ -93,9 +93,7 @@ module Elasticsearch
93
93
  payload = body
94
94
  end
95
95
 
96
- headers.merge!({
97
- 'Content-Type' => 'application/vnd.elasticsearch+x-ndjson; compatible-with=9'
98
- })
96
+ Utils.update_ndjson_headers!(headers, transport.options.dig(:transport_options, :headers))
99
97
  Elasticsearch::API::Response.new(
100
98
  perform_request(method, path, params, payload, headers, request_opts)
101
99
  )
@@ -34,7 +34,7 @@ module Elasticsearch
34
34
  # @option arguments [String, Array<String>] :fields Comma-separated list or wildcard expressions of fields to include in the statistics.
35
35
  # @option arguments [Boolean] :groups Comma-separated list of search groups to include in the search statistics.
36
36
  # @option arguments [Boolean] :include_segment_file_sizes If true, the call reports the aggregated disk usage of each one of the Lucene index files (only applies if segment stats are requested).
37
- # @option arguments [String] :level Indicates whether statistics are aggregated at the cluster, index, or shard level.
37
+ # @option arguments [String] :level Indicates whether statistics are aggregated at the node, indices, or shards level. Server default: node.
38
38
  # @option arguments [Time] :timeout Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error. Server default: 30s.
39
39
  # @option arguments [Array<String>] :types A comma-separated list of document types for the indexing index metric.
40
40
  # @option arguments [Boolean] :include_unloaded_segments If `true`, the response includes information from segments that are not loaded into memory.