public final class ElasticsearchBackendSettings extends Object
Constants in this class are to be appended to a prefix to form a property key;
see BackendSettings for details.
| Modifier and Type | Class and Description |
|---|---|
static class |
ElasticsearchBackendSettings.Defaults
Default values for the different settings if no values are given.
|
| Modifier and Type | Field and Description |
|---|---|
static String |
ANALYSIS_CONFIGURER
The analysis configurer to use.
|
static String |
CONNECTION_TIMEOUT
The timeout when establishing a connection to an Elasticsearch server.
|
static String |
DISCOVERY_ENABLED
Whether automatic discovery of nodes in the Elasticsearch cluster is enabled.
|
static String |
DISCOVERY_REFRESH_INTERVAL
The time interval between two executions of the automatic discovery, if enabled.
|
static String |
HOSTS
The host name and ports of the Elasticsearch servers to connect to.
|
static String |
LOG_JSON_PRETTY_PRINTING
Whether JSON included in logs should be pretty-printed (indented, with line breaks).
|
static String |
MAPPING_TYPE_NAME_STRATEGY
The strategy for mapping documents to their type name,
i.e.
|
static String |
MAX_CONNECTIONS
The maximum number of simultaneous connections to the Elasticsearch cluster,
all hosts taken together.
|
static String |
MAX_CONNECTIONS_PER_ROUTE
The maximum number of simultaneous connections to each host of the Elasticsearch cluster.
|
static String |
MULTI_TENANCY_STRATEGY
The multi-tenancy strategy to use.
|
static String |
PASSWORD
The password to send when connecting to the Elasticsearch servers (HTTP authentication).
|
static String |
PROTOCOL
The protocol to use when connecting to the Elasticsearch servers.
|
static String |
READ_TIMEOUT
The timeout when reading responses from an Elasticsearch server.
|
static String |
REQUEST_TIMEOUT
The timeout when executing a request to an Elasticsearch server.
|
static String |
TYPE_NAME
The name to use for the
backend type
configuration property so that an Elasticsearch backend is instantiated by Hibernate Search. |
static String |
USERNAME
The username to send when connecting to the Elasticsearch servers (HTTP authentication).
|
static String |
VERSION
The version of Elasticsearch running on the Elasticsearch cluster.
|
public static final String TYPE_NAME
backend type
configuration property so that an Elasticsearch backend is instantiated by Hibernate Search.public static final String HOSTS
Expects a String representing a host and port such as localhost or es.mycompany.com:4400,
or a String containing multiple such host-and-port strings separated by commas,
or a Collection<String> containing such host-and-port strings.
Defaults to ElasticsearchBackendSettings.Defaults.HOSTS.
Multiple servers may be specified for load-balancing: requests will be assigned to each host in turns.
public static final String PROTOCOL
Expects a String: either http or https.
Defaults to ElasticsearchBackendSettings.Defaults.PROTOCOL.
public static final String VERSION
Expects either an ElasticsearchVersion object,
or a String that can be {parsed in such an object.
No default: if not provided, the version will be resolved automatically by sending a request to the Elasticsearch cluster on startup.
public static final String USERNAME
Expects a String.
Defaults to no username (anonymous access).
public static final String PASSWORD
Expects a String.
Defaults to no username (anonymous access).
public static final String REQUEST_TIMEOUT
This includes the time needed to establish a connection, send the request and read the response.
Expects a positive Integer value in milliseconds, such as 60000, or a String that can be parsed into such Integer value.
Defaults to ElasticsearchBackendSettings.Defaults.REQUEST_TIMEOUT.
public static final String READ_TIMEOUT
Expects a positive Integer value in milliseconds, such as 60000,
or a String that can be parsed into such Integer value.
Defaults to ElasticsearchBackendSettings.Defaults.READ_TIMEOUT.
public static final String CONNECTION_TIMEOUT
Expects a positive Integer value in milliseconds, such as 3000,
or a String that can be parsed into such Integer value.
Defaults to ElasticsearchBackendSettings.Defaults.CONNECTION_TIMEOUT.
public static final String MAX_CONNECTIONS
Expects a positive Integer value, such as 20,
or a String that can be parsed into such Integer value.
Defaults to ElasticsearchBackendSettings.Defaults.MAX_CONNECTIONS.
public static final String MAX_CONNECTIONS_PER_ROUTE
Expects a positive Integer value, such as 10,
or a String that can be parsed into such Integer value.
Defaults to ElasticsearchBackendSettings.Defaults.MAX_CONNECTIONS_PER_ROUTE.
public static final String DISCOVERY_ENABLED
Expects a Boolean value such as true or false,
or a string that can be parsed to such Boolean value.
Defaults to ElasticsearchBackendSettings.Defaults.DISCOVERY_ENABLED.
public static final String DISCOVERY_REFRESH_INTERVAL
Expects a positive Integer value in seconds, such as 2,
or a String that can be parsed into such Integer value.
Defaults to ElasticsearchBackendSettings.Defaults.DISCOVERY_REFRESH_INTERVAL.
public static final String LOG_JSON_PRETTY_PRINTING
Expects a Boolean value such as true or false,
or a string that can be parsed to such Boolean value.
Defaults to ElasticsearchBackendSettings.Defaults.LOG_JSON_PRETTY_PRINTING.
public static final String MULTI_TENANCY_STRATEGY
Expects a MultiTenancyStrategyName value, or a String representation of such value.
Defaults to ElasticsearchBackendSettings.Defaults.MULTI_TENANCY_STRATEGY.
public static final String MAPPING_TYPE_NAME_STRATEGY
Expects a TypeNameMappingStrategyName value, or a String representation of such value.
Defaults to ElasticsearchBackendSettings.Defaults.MAPPING_TYPE_NAME_STRATEGY.
public static final String ANALYSIS_CONFIGURER
Expects a reference to a bean of type ElasticsearchAnalysisConfigurer.
Defaults to no value.
Copyright © 2006-2019 Red Hat, Inc. and others. Licensed under the GNU Lesser General Public License (LGPL), version 2.1 or later.