@Configuration @ConditionalOnClass(value={org.elasticsearch.client.Client.class,org.springframework.data.elasticsearch.core.ElasticsearchTemplate.class}) @AutoConfigureAfter(value=ElasticsearchAutoConfiguration.class) public class ElasticsearchDataAutoConfiguration extends Object
Auto-configuration
for Spring Data's Elasticsearch
support.
Registers an 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(value=org.springframework.data.elasticsearch.core.ElasticsearchOperations.class) @ConditionalOnBean(value=org.elasticsearch.client.Client.class) 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 © 2020 Pivotal Software, Inc.. All rights reserved.