Interface HibernateSearchElasticsearchBuildTimeConfigPersistenceUnit.ElasticsearchBackendBuildTimeConfig
- Enclosing interface:
- HibernateSearchElasticsearchBuildTimeConfigPersistenceUnit
public static interface HibernateSearchElasticsearchBuildTimeConfigPersistenceUnit.ElasticsearchBackendBuildTimeConfig
-
Method Summary
Modifier and TypeMethodDescriptionThe default configuration for the Elasticsearch indexes.Map<String,
HibernateSearchElasticsearchBuildTimeConfigPersistenceUnit.ElasticsearchIndexBuildTimeConfig> indexes()
Per-index configuration overrides.layout()
Configuration for the index layout.Optional<org.hibernate.search.backend.elasticsearch.ElasticsearchVersion>
version()
The version of Elasticsearch used in the cluster.
-
Method Details
-
version
Optional<org.hibernate.search.backend.elasticsearch.ElasticsearchVersion> version()The version of Elasticsearch used in the cluster. As the schema is generated without a connection to the server, this item is mandatory. It doesn't have to be the exact version (it can be `7` or `7.1` for instance) but it has to be sufficiently precise to choose a model dialect (the one used to generate the schema) compatible with the protocol dialect (the one used to communicate with Elasticsearch). There's no rule of thumb here as it depends on the schema incompatibilities introduced by Elasticsearch versions. In any case, if there is a problem, you will have an error when Hibernate Search tries to connect to the cluster. -
layout
Configuration for the index layout. -
indexDefaults
@WithParentName HibernateSearchElasticsearchBuildTimeConfigPersistenceUnit.ElasticsearchIndexBuildTimeConfig indexDefaults()The default configuration for the Elasticsearch indexes. -
indexes
@ConfigDocSection @ConfigDocMapKey("index-name") Map<String,HibernateSearchElasticsearchBuildTimeConfigPersistenceUnit.ElasticsearchIndexBuildTimeConfig> indexes()Per-index configuration overrides.
-