Class Alias.Builder
java.lang.Object
org.springframework.data.elasticsearch.core.mapping.Alias.Builder
- Enclosing class:
- Alias
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
withFilter
(Query filter) Query used to limit documents the alias can access.withHidden
(Boolean hidden) The alias is hidden?withIndexRouting
(String indexRouting) Used to route indexing operations to a specific shard.withRouting
(String routing) Used to route indexing and search operations to a specific shard.withSearchRouting
(String searchRouting) Used to route search operations to a specific shard.withWriteIndex
(Boolean writeIndex) The index is the 'write index' for the alias?
-
Constructor Details
-
Builder
-
-
Method Details
-
withFilter
Query used to limit documents the alias can access. -
withIndexRouting
Used to route indexing operations to a specific shard. -
withSearchRouting
Used to route search operations to a specific shard. -
withRouting
Used to route indexing and search operations to a specific shard. -
withHidden
The alias is hidden? By default, this is set tofalse
. -
withWriteIndex
The index is the 'write index' for the alias? By default, this is set tofalse
. -
build
-