java.lang.Object
org.springframework.data.elasticsearch.core.mapping.Alias.Builder
Enclosing class:
Alias

public static class Alias.Builder extends Object
  • Constructor Details

    • Builder

      public Builder(String alias)
  • Method Details

    • withFilter

      public Alias.Builder withFilter(@Nullable Query filter)
      Query used to limit documents the alias can access.
    • withIndexRouting

      public Alias.Builder withIndexRouting(@Nullable String indexRouting)
      Used to route indexing operations to a specific shard.
    • withSearchRouting

      public Alias.Builder withSearchRouting(@Nullable String searchRouting)
      Used to route search operations to a specific shard.
    • withRouting

      public Alias.Builder withRouting(@Nullable String routing)
      Used to route indexing and search operations to a specific shard.
    • withHidden

      public Alias.Builder withHidden(@Nullable Boolean hidden)
      The alias is hidden? By default, this is set to false.
    • withWriteIndex

      public Alias.Builder withWriteIndex(@Nullable Boolean writeIndex)
      The index is the 'write index' for the alias? By default, this is set to false.
    • build

      public Alias build()