Class AliasDefinition
java.lang.Object
co.elastic.clients.elasticsearch.indices.AliasDefinition
- All Implemented Interfaces:
JsonpSerializable
- See Also:
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionstatic final JsonpDeserializer<AliasDefinition>
Json deserializer forAliasDefinition
-
Method Summary
Modifier and TypeMethodDescriptionfinal Query
filter()
Query used to limit documents the alias can access.final String
Value used to route indexing operations to a specific shard.final Boolean
isHidden()
Iftrue
, the alias is hidden.final Boolean
Iftrue
, the index is the write index for the alias.static AliasDefinition
final String
routing()
Value used to route indexing and search operations to a specific shard.final String
Value used to route search operations to a specific shard.void
serialize
(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this object to JSON.protected void
serializeInternal
(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static void
toString()
-
Field Details
-
_DESERIALIZER
Json deserializer forAliasDefinition
-
-
Method Details
-
of
public static AliasDefinition of(Function<AliasDefinition.Builder, ObjectBuilder<AliasDefinition>> fn) -
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 therouting
value for indexing operations.API name:
index_routing
-
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 therouting
value for search operations.API name:
search_routing
-
isHidden
Iftrue
, the alias is hidden. All indices for the alias must have the sameis_hidden
value.API name:
is_hidden
-
serialize
Serialize this object to JSON.- Specified by:
serialize
in interfaceJsonpSerializable
-
serializeInternal
-
toString
-
setupAliasDefinitionDeserializer
protected static void setupAliasDefinitionDeserializer(ObjectDeserializer<AliasDefinition.Builder> op)
-