@Configuration(proxyBeanMethods=false) @ConditionalOnClass(value={org.elasticsearch.client.Client.class,org.springframework.data.elasticsearch.client.TransportClientFactoryBean.class}) @ConditionalOnProperty(prefix="spring.data.elasticsearch", name="cluster-nodes", matchIfMissing=false) @EnableConfigurationProperties(value=ElasticsearchProperties.class) public class ElasticsearchAutoConfiguration extends Object
Auto-configuration
for Elasticsearch.Constructor and Description |
---|
ElasticsearchAutoConfiguration(ElasticsearchProperties properties) |
Modifier and Type | Method and Description |
---|---|
org.elasticsearch.client.transport.TransportClient |
elasticsearchClient() |
public ElasticsearchAutoConfiguration(ElasticsearchProperties properties)
@Bean @ConditionalOnMissingBean public org.elasticsearch.client.transport.TransportClient elasticsearchClient() throws Exception
Exception
Copyright © 2020 Pivotal Software, Inc.. All rights reserved.