public static class ElasticsearchConfiguration.Builder extends Object
| Modifier and Type | Method and Description |
|---|---|
ElasticsearchConfiguration |
build() |
ElasticsearchConfiguration.Builder |
createIndices(boolean createIndices)
Whether to explicitly create Elasticsearch indices when inserting data.
|
ElasticsearchConfiguration.Builder |
deleteAllIndices(boolean deleteAllIndices)
Whether to explicitly delete all indices from Elasticsearch when deleting data.
|
ElasticsearchConfiguration.Builder |
httpClientConfig(io.searchbox.client.config.HttpClientConfig httpClientConfig)
Set the HTTP client configuration for
JestClient. |
ElasticsearchConfiguration.Builder |
indexSettings(Map<String,Object> indexSettings)
Index settings to use if explicitly creating indices is enabled when inserting data.
|
ElasticsearchConfiguration.Builder |
indexTemplates(Map<String,Map<String,Object>> indexTemplates)
Collection of index templates to create before inserting data.
|
ElasticsearchConfiguration.Builder |
server(String server)
The URL of the Elasticsearch node to connect to, for example
http://127.0.0.1:9200/. |
ElasticsearchConfiguration.Builder |
servers(Set<String> servers)
The URLs of the Elasticsearch nodes to connect to, for example
http://127.0.0.1:9200/. |
public ElasticsearchConfiguration.Builder server(String server)
http://127.0.0.1:9200/.server - The URLs of the Elasticsearch nodes to connect topublic ElasticsearchConfiguration.Builder servers(Set<String> servers)
http://127.0.0.1:9200/.servers - The URLs of the Elasticsearch nodes to connect topublic ElasticsearchConfiguration.Builder httpClientConfig(io.searchbox.client.config.HttpClientConfig httpClientConfig)
JestClient.public ElasticsearchConfiguration.Builder deleteAllIndices(boolean deleteAllIndices)
deleteAllIndices - Delete all indices from Elasticsearch if true, delete individual documents if falsepublic ElasticsearchConfiguration.Builder createIndices(boolean createIndices)
indexSettings(Map),
indexTemplates(Map)public ElasticsearchConfiguration.Builder indexSettings(Map<String,Object> indexSettings)
public ElasticsearchConfiguration.Builder indexTemplates(Map<String,Map<String,Object>> indexTemplates)
indexTemplates - A map of index templates with the key being the name of the index template
and the value being the template source.public ElasticsearchConfiguration build()
Copyright © 2017. All rights reserved.