Class IndicesAliasesRequestBuilder
java.lang.Object
org.elasticsearch.action.ActionRequestBuilder<Request,Response>
org.elasticsearch.action.support.master.MasterNodeOperationRequestBuilder<Request,Response,RequestBuilder>
org.elasticsearch.action.support.master.AcknowledgedRequestBuilder<IndicesAliasesRequest,AcknowledgedResponse,IndicesAliasesRequestBuilder>
org.elasticsearch.action.admin.indices.alias.IndicesAliasesRequestBuilder
public class IndicesAliasesRequestBuilder
extends AcknowledgedRequestBuilder<IndicesAliasesRequest,AcknowledgedResponse,IndicesAliasesRequestBuilder>
Builder for request to modify many aliases at once.
-
Field Summary
Fields inherited from class org.elasticsearch.action.ActionRequestBuilder
action, client, request
-
Constructor Summary
ConstructorDescriptionIndicesAliasesRequestBuilder(ElasticsearchClient client, IndicesAliasesAction action)
-
Method Summary
Modifier and TypeMethodDescriptionAdds an alias to the index.Adds an alias to the index.Adds an alias to the index.addAlias(String[] indices, String alias, QueryBuilder filterBuilder)
Adds an alias to the index.Adds an alias to the index.Adds an alias to the index.Adds an alias to the index.Adds an alias to the index.addAlias(String index, String alias, QueryBuilder filterBuilder)
Adds an alias to the index.Adds an alias action to the request.removeAlias(String[] indices, String... aliases)
Removes aliases from the index.removeAlias(String index, String alias)
Removes an alias from the index.removeAlias(String index, String[] aliases)
Removes aliases from the index.removeIndex(String index)
Methods inherited from class org.elasticsearch.action.support.master.AcknowledgedRequestBuilder
setTimeout, setTimeout
Methods inherited from class org.elasticsearch.action.support.master.MasterNodeOperationRequestBuilder
setMasterNodeTimeout, setMasterNodeTimeout
-
Constructor Details
-
IndicesAliasesRequestBuilder
-
-
Method Details
-
addAlias
Adds an alias to the index.- Parameters:
index
- The indexalias
- The alias
-
addAlias
Adds an alias to the index.- Parameters:
indices
- The indicesalias
- The alias
-
addAlias
Adds an alias to the index.- Parameters:
index
- The indexalias
- The aliasfilter
- The filter
-
addAlias
Adds an alias to the index.- Parameters:
indices
- The indicesalias
- The aliasfilter
- The filter
-
addAlias
public IndicesAliasesRequestBuilder addAlias(String[] indices, String alias, Map<String,Object> filter)Adds an alias to the index.- Parameters:
indices
- The indicesalias
- The aliasfilter
- The filter
-
addAlias
Adds an alias to the index.- Parameters:
index
- The indicesalias
- The aliasfilter
- The filter
-
addAlias
public IndicesAliasesRequestBuilder addAlias(String[] indices, String alias, QueryBuilder filterBuilder)Adds an alias to the index.- Parameters:
indices
- The indicesalias
- The aliasfilterBuilder
- The filter
-
addAlias
public IndicesAliasesRequestBuilder addAlias(String index, String alias, QueryBuilder filterBuilder)Adds an alias to the index.- Parameters:
index
- The indexalias
- The aliasfilterBuilder
- The filter
-
addAlias
Adds an alias to the index.- Parameters:
index
- The indexalias
- The aliaswriteIndex
- write index flag
-
removeAlias
Removes an alias from the index.- Parameters:
index
- The indexalias
- The alias
-
removeAlias
Removes aliases from the index.- Parameters:
indices
- The indicesaliases
- The aliases
-
removeAlias
Removes aliases from the index.- Parameters:
index
- The indexaliases
- The aliases
-
removeIndex
-
addAliasAction
Adds an alias action to the request.- Parameters:
action
- The alias action
-