Package org.elasticsearch.action
Interface AliasesRequest
- All Superinterfaces:
IndicesRequest
,IndicesRequest.Replaceable
- All Known Implementing Classes:
GetAliasesRequest
,IndicesAliasesRequest.AliasActions
Needs to be implemented by all
ActionRequest
subclasses that relate to
one or more indices and one or more aliases. Meant to be used for aliases management requests (e.g. add/remove alias,
get aliases) that hold aliases and indices in separate fields.
Allows to retrieve which indices and aliases the action relates to.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.action.IndicesRequest
IndicesRequest.Replaceable
-
Method Summary
Modifier and TypeMethodDescriptionString[]
aliases()
Returns the array of aliases that the action relates toboolean
Returns true if wildcards expressions among aliases should be resolved, false otherwiseString[]
Returns the aliases as they were originally requested, before any potential name resolutionvoid
replaceAliases(String... aliases)
Replaces current aliases with the provided aliases.Methods inherited from interface org.elasticsearch.action.IndicesRequest
allowsRemoteIndices, includeDataStreams, indices, indicesOptions
Methods inherited from interface org.elasticsearch.action.IndicesRequest.Replaceable
indices
-
Method Details
-
aliases
String[] aliases()Returns the array of aliases that the action relates to -
getOriginalAliases
String[] getOriginalAliases()Returns the aliases as they were originally requested, before any potential name resolution -
replaceAliases
Replaces current aliases with the provided aliases. Sometimes aliases expressions need to be resolved to concrete aliases prior to executing the transport action. -
expandAliasesWildcards
boolean expandAliasesWildcards()Returns true if wildcards expressions among aliases should be resolved, false otherwise
-