#151 - Override managed version to support Solr 5.x.
Pull in matching Solr 5 version.
This commit is contained in:
committed by
Oliver Gierke
parent
62b2d644cc
commit
f593e31565
@@ -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");
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -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>
|
||||
Reference in New Issue
Block a user