Class Alias.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<Alias.Builder>
co.elastic.clients.elasticsearch.indices.Alias.Builder
- All Implemented Interfaces:
WithJson<Alias.Builder>,ObjectBuilder<Alias>
- Enclosing class:
- Alias
public static class Alias.Builder
extends WithJsonObjectBuilderBase<Alias.Builder>
implements ObjectBuilder<Alias>
Builder for
Alias.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aAlias.final Alias.BuilderQuery used to limit documents the alias can access.final Alias.Builderfilter(QueryVariant value) Query used to limit documents the alias can access.final Alias.BuilderQuery used to limit documents the alias can access.final Alias.BuilderindexRouting(String value) Value used to route indexing operations to a specific shard.final Alias.BuilderIftrue, the alias is hidden.final Alias.BuilderisWriteIndex(Boolean value) Iftrue, the index is the write index for the alias.final Alias.BuilderValue used to route indexing and search operations to a specific shard.final Alias.BuildersearchRouting(String value) Value used to route search operations to a specific shard.protected Alias.Builderself()Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJsonMethods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
filter
Query used to limit documents the alias can access.API name:
filter -
filter
Query used to limit documents the alias can access.API name:
filter -
filter
Query used to limit documents the alias can access.API name:
filter -
indexRouting
Value used to route indexing operations to a specific shard. If specified, this overwrites theroutingvalue for indexing operations.API name:
index_routing -
isHidden
Iftrue, the alias is hidden. All indices for the alias must have the sameis_hiddenvalue.API name:
is_hidden -
isWriteIndex
Iftrue, the index is the write index for the alias.API name:
is_write_index -
routing
Value used to route indexing and search operations to a specific shard.API name:
routing -
searchRouting
Value used to route search operations to a specific shard. If specified, this overwrites theroutingvalue for search operations.API name:
search_routing -
self
- Specified by:
selfin classWithJsonObjectBuilderBase<Alias.Builder>
-
build
Builds aAlias.- Specified by:
buildin interfaceObjectBuilder<Alias>- Throws:
NullPointerException- if some of the required fields are null.
-