public abstract class AbstractElasticsearchConfiguration extends ElasticsearchConfigurationSupport
ElasticsearchConfigurationSupport| Constructor and Description |
|---|
AbstractElasticsearchConfiguration() |
| Modifier and Type | Method and Description |
|---|---|
abstract org.elasticsearch.client.RestHighLevelClient |
elasticsearchClient()
Return the
RestHighLevelClient instance used to connect to the cluster. |
ElasticsearchOperations |
elasticsearchOperations(ElasticsearchConverter elasticsearchConverter,
org.elasticsearch.client.RestHighLevelClient elasticsearchClient)
Creates
ElasticsearchOperations. |
elasticsearchCustomConversions, elasticsearchEntityMapper, elasticsearchMappingContext, getInitialEntitySet, getMappingBasePackages, scanForEntities@Bean public abstract org.elasticsearch.client.RestHighLevelClient elasticsearchClient()
RestHighLevelClient instance used to connect to the cluster. @Bean(name={"elasticsearchOperations","elasticsearchTemplate"}) public ElasticsearchOperations elasticsearchOperations(ElasticsearchConverter elasticsearchConverter, org.elasticsearch.client.RestHighLevelClient elasticsearchClient)
ElasticsearchOperations. elasticsearchClient() directly. This is not possible anymore, as the base configuration classes don not
use proxied bean methods anymore.elasticsearchConverter - the ElasticsearchConverter to use*elasticsearchClient - the RestHighLevelClient to useCopyright © 2011–2021 Pivotal Software, Inc.. All rights reserved.