Class AliasDefinition

java.lang.Object
co.elastic.clients.elasticsearch.indices.AliasDefinition
All Implemented Interfaces:
JsonpSerializable

@JsonpDeserializable public class AliasDefinition extends Object implements JsonpSerializable
See Also:
  • Field Details

  • Method Details

    • of

    • filter

      @Nullable public final Query filter()
      Query used to limit documents the alias can access.

      API name: filter

    • indexRouting

      @Nullable public final String indexRouting()
      Value used to route indexing operations to a specific shard. If specified, this overwrites the routing value for indexing operations.

      API name: index_routing

    • isWriteIndex

      @Nullable public final Boolean isWriteIndex()
      If true, the index is the write index for the alias.

      API name: is_write_index

    • routing

      @Nullable public final String routing()
      Value used to route indexing and search operations to a specific shard.

      API name: routing

    • searchRouting

      @Nullable public final String searchRouting()
      Value used to route search operations to a specific shard. If specified, this overwrites the routing value for search operations.

      API name: search_routing

    • isHidden

      @Nullable public final Boolean isHidden()
      If true, the alias is hidden. All indices for the alias must have the same is_hidden value.

      API name: is_hidden

    • serialize

      public void serialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
      Serialize this object to JSON.
      Specified by:
      serialize in interface JsonpSerializable
    • serializeInternal

      protected void serializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • setupAliasDefinitionDeserializer

      protected static void setupAliasDefinitionDeserializer(ObjectDeserializer<AliasDefinition.Builder> op)