Module org.elasticsearch.server
Package org.elasticsearch.action.support
Class IndicesOptions.WildcardOptions.Builder
java.lang.Object
org.elasticsearch.action.support.IndicesOptions.WildcardOptions.Builder
- Enclosing class:
- IndicesOptions.WildcardOptions
-
Method Summary
Modifier and TypeMethodDescriptionall()
Maximises the resolution of indices, we will match open, closed and hidden targets.allowEmptyExpressions
(boolean allowEmptyExpressions) If true, when any of the expressions does not match any indices, we consider the result of this expression empty; if all the expressions are empty then we have a successful but empty response.build()
expandStates
(String[] expandStates) Parses the list of wildcard states to expand as provided by the user.includeHidden
(boolean includeHidden) Hidden indices will be included from the result.matchClosed
(boolean matchClosed) Closed indices will be matched.Disables expanding wildcards.matchOpen
(boolean matchOpen) Open indices will be matched.resolveAliases
(boolean resolveAliases) Aliases will be included in the result.
-
Method Details
-
matchOpen
Open indices will be matched. Defaults to true. -
matchClosed
Closed indices will be matched. Default to false. -
includeHidden
Hidden indices will be included from the result. Defaults to false. -
resolveAliases
Aliases will be included in the result. Defaults to true. -
allowEmptyExpressions
If true, when any of the expressions does not match any indices, we consider the result of this expression empty; if all the expressions are empty then we have a successful but empty response. If false, we throw an error immediately, so even if other expressions would result into indices the response will contain only the error. Defaults to true. -
matchNone
Disables expanding wildcards. -
all
Maximises the resolution of indices, we will match open, closed and hidden targets. -
expandStates
Parses the list of wildcard states to expand as provided by the user. Logs a warning when the option 'none' is used along with other options because the position in the list changes the outcome. -
build
-