@Configuration @ConditionalOnClass(value={org.apache.solr.client.solrj.impl.HttpSolrServer.class,org.apache.solr.client.solrj.impl.CloudSolrServer.class,org.apache.solr.common.cloud.HashPartitioner.class}) @EnableConfigurationProperties(value=SolrProperties.class) public class SolrAutoConfiguration extends Object
Auto-configuration
for Solr 4.x.Constructor and Description |
---|
SolrAutoConfiguration() |
Modifier and Type | Method and Description |
---|---|
void |
close() |
org.apache.solr.client.solrj.SolrServer |
solrServer() |
@PreDestroy public void close()
@Bean @ConditionalOnMissingBean public org.apache.solr.client.solrj.SolrServer solrServer()
Copyright © 2016 Pivotal Software, Inc.. All rights reserved.