#151 - Override managed version to support Solr 5.x.

Pull in matching Solr 5 version.
This commit is contained in:
Christoph Strobl
2016-02-12 11:00:18 +01:00
committed by Oliver Gierke
parent 62b2d644cc
commit f593e31565
2 changed files with 11 additions and 6 deletions

View File

@@ -15,17 +15,17 @@
*/
package example.springdata.solr;
import example.springdata.solr.product.ProductRepository;
import javax.annotation.PreDestroy;
import org.apache.solr.client.solrj.SolrServer;
import org.apache.solr.client.solrj.impl.HttpSolrServer;
import org.apache.solr.client.solrj.SolrClient;
import org.apache.solr.client.solrj.impl.HttpSolrClient;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.data.solr.repository.config.EnableSolrRepositories;
import example.springdata.solr.product.ProductRepository;
/**
* {@link Configuration} class enabling schema support for solr.<br />
* <br />
@@ -41,8 +41,8 @@ public class SolrTestConfiguration {
@Autowired ProductRepository repo;
@Bean
public SolrServer solrServer() {
return new HttpSolrServer("http://localhost:8983/solr");
public SolrClient solrServer() {
return new HttpSolrClient("http://localhost:8983/solr");
}
/**

View File

@@ -33,6 +33,11 @@
<artifactId>joda-time</artifactId>
</dependency>
<dependency>
<groupId>org.apache.solr</groupId>
<artifactId>solr-solrj</artifactId>
<version>5.3.1</version>
</dependency>
</dependencies>
</project>