Interface HibernateSearchElasticsearchRuntimeConfigPersistenceUnit.ElasticsearchBackendRuntimeConfig
-
- Enclosing interface:
- HibernateSearchElasticsearchRuntimeConfigPersistenceUnit
public static interface HibernateSearchElasticsearchRuntimeConfigPersistenceUnit.ElasticsearchBackendRuntimeConfig
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Duration
connectionTimeout()
The timeout when establishing a connection to an Elasticsearch server.HibernateSearchElasticsearchRuntimeConfigPersistenceUnit.DiscoveryConfig
discovery()
Configuration for the automatic discovery of new Elasticsearch nodes.List<String>
hosts()
The list of hosts of the Elasticsearch servers.HibernateSearchElasticsearchRuntimeConfigPersistenceUnit.ElasticsearchIndexRuntimeConfig
indexDefaults()
The default configuration for the Elasticsearch indexes.Map<String,HibernateSearchElasticsearchRuntimeConfigPersistenceUnit.ElasticsearchIndexRuntimeConfig>
indexes()
Per-index specific configuration.int
maxConnections()
The maximum number of connections to all the Elasticsearch servers.int
maxConnectionsPerRoute()
The maximum number of connections per Elasticsearch server.Optional<String>
password()
The password used for authentication.HibernateSearchElasticsearchRuntimeConfigPersistenceUnit.ElasticsearchClientProtocol
protocol()
The protocol to use when contacting Elasticsearch servers.Duration
readTimeout()
The timeout when reading responses from an Elasticsearch server.Optional<Duration>
requestTimeout()
The timeout when executing a request to an Elasticsearch server.HibernateSearchElasticsearchRuntimeConfigPersistenceUnit.ThreadPoolConfig
threadPool()
Configuration for the thread pool assigned to the backend.Optional<String>
username()
The username used for authentication.boolean
versionCheck()
Whether Hibernate Search should check the version of the Elasticsearch cluster on startup.
-
-
-
Method Detail
-
hosts
@WithDefault("localhost:9200") List<String> hosts()
The list of hosts of the Elasticsearch servers.
-
protocol
@WithDefault("http") HibernateSearchElasticsearchRuntimeConfigPersistenceUnit.ElasticsearchClientProtocol protocol()
The protocol to use when contacting Elasticsearch servers. Set to "https" to enable SSL/TLS.
-
connectionTimeout
@WithDefault("1S") Duration connectionTimeout()
The timeout when establishing a connection to an Elasticsearch server.
-
readTimeout
@WithDefault("30S") Duration readTimeout()
The timeout when reading responses from an Elasticsearch server.
-
requestTimeout
Optional<Duration> requestTimeout()
The timeout when executing a request to an Elasticsearch server. This includes the time needed to wait for a connection to be available, send the request and read the response.
-
maxConnections
@WithDefault("20") int maxConnections()
The maximum number of connections to all the Elasticsearch servers.
-
maxConnectionsPerRoute
@WithDefault("10") int maxConnectionsPerRoute()
The maximum number of connections per Elasticsearch server.
-
discovery
HibernateSearchElasticsearchRuntimeConfigPersistenceUnit.DiscoveryConfig discovery()
Configuration for the automatic discovery of new Elasticsearch nodes.
-
threadPool
HibernateSearchElasticsearchRuntimeConfigPersistenceUnit.ThreadPoolConfig threadPool()
Configuration for the thread pool assigned to the backend.
-
versionCheck
@WithName("version-check.enabled") @WithDefault("true") boolean versionCheck()
Whether Hibernate Search should check the version of the Elasticsearch cluster on startup. Set to `false` if the Elasticsearch cluster may not be available on startup.
-
indexDefaults
@WithParentName HibernateSearchElasticsearchRuntimeConfigPersistenceUnit.ElasticsearchIndexRuntimeConfig indexDefaults()
The default configuration for the Elasticsearch indexes.
-
indexes
@ConfigDocMapKey("index-name") Map<String,HibernateSearchElasticsearchRuntimeConfigPersistenceUnit.ElasticsearchIndexRuntimeConfig> indexes()
Per-index specific configuration.
-
-