@Configuration @ConditionalOnClass(value={org.elasticsearch.client.Client.class,org.springframework.data.elasticsearch.core.ElasticsearchTemplate.class}) public class ElasticsearchDataAutoConfiguration extends Object
Auto-configuration
for Spring Data's Elasticsearch
support.
Registers a ElasticsearchTemplate
if no other bean of the same type is
configured.
EnableElasticsearchRepositories
Constructor and Description |
---|
ElasticsearchDataAutoConfiguration() |
Modifier and Type | Method and Description |
---|---|
org.springframework.data.elasticsearch.core.convert.ElasticsearchConverter |
elasticsearchConverter(org.springframework.data.elasticsearch.core.mapping.SimpleElasticsearchMappingContext mappingContext) |
org.springframework.data.elasticsearch.core.ElasticsearchTemplate |
elasticsearchTemplate(org.elasticsearch.client.Client client,
org.springframework.data.elasticsearch.core.convert.ElasticsearchConverter converter) |
org.springframework.data.elasticsearch.core.mapping.SimpleElasticsearchMappingContext |
mappingContext() |
@Bean @ConditionalOnMissingBean public org.springframework.data.elasticsearch.core.ElasticsearchTemplate elasticsearchTemplate(org.elasticsearch.client.Client client, org.springframework.data.elasticsearch.core.convert.ElasticsearchConverter converter)
@Bean @ConditionalOnMissingBean public org.springframework.data.elasticsearch.core.convert.ElasticsearchConverter elasticsearchConverter(org.springframework.data.elasticsearch.core.mapping.SimpleElasticsearchMappingContext mappingContext)
@Bean @ConditionalOnMissingBean public org.springframework.data.elasticsearch.core.mapping.SimpleElasticsearchMappingContext mappingContext()
Copyright © 2017 Pivotal Software, Inc.. All rights reserved.