Interface ShardingStrategyInitializationContext
public interface ShardingStrategyInitializationContext
-
Method Summary
Modifier and TypeMethodDescriptionorg.hibernate.search.engine.environment.bean.BeanResolverorg.hibernate.search.engine.cfg.ConfigurationPropertySourcevoidInform Hibernate Search that sharding is disabled.voidshardIdentifiers(Set<String> shardIdentifiers)
-
Method Details
-
shardIdentifiers
- Parameters:
shardIdentifiers- A comprehensive set of all possible values for shard identifiers, i.e. values that can be returned byShardingStrategy.toShardIdentifier(String, String)orShardingStrategy.toShardIdentifiers(Set).
-
disableSharding
void disableSharding()Inform Hibernate Search that sharding is disabled. -
indexName
String indexName()- Returns:
- The name of the index in Hibernate Search.
-
beanResolver
org.hibernate.search.engine.environment.bean.BeanResolver beanResolver()- Returns:
- A
BeanResolver.
-
configurationPropertySource
org.hibernate.search.engine.cfg.ConfigurationPropertySource configurationPropertySource()- Returns:
- A configuration property source, appropriately masked so that the factory doesn't need to care about Hibernate Search prefixes (hibernate.search.*, etc.). All the properties can be accessed at the root. CAUTION: the property key "type" is reserved for use by the engine.
-