Skip to content

Commit 5483035

Browse files
committed
[API] Adds ignore_unavailable and allow_no_indices params to resolve_index
1 parent 4e28346 commit 5483035

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/elasticsearch-serverless/api/indices/resolve_index.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,10 @@ module Actions
3131
# If the request can target data streams, this argument determines whether wildcard expressions match hidden data streams.
3232
# Supports comma-separated values, such as +open,hidden+.
3333
# Valid values are: +all+, +open+, +closed+, +hidden+, +none+. Server default: open.
34+
# @option arguments [Boolean] :ignore_unavailable If +false+, the request returns an error if it targets a missing or closed index.
35+
# @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.
36+
# This behavior applies even if the request targets other open indices.
37+
# For example, a request targeting +foo*,bar*+ returns an error if an index starts with +foo+ but no index starts with +bar+. Server default: true.
3438
# @option arguments [Hash] :headers Custom HTTP headers
3539
#
3640
# @see https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-resolve-index-api.html

0 commit comments

Comments
 (0)