Project

General

Profile

« Previous | Next » 

Revision 49309

excluding solr6 changes, they were moved to dedicated branch

View differences:

CloudIndexClientFactory.java
2 2

  
3 3
import org.apache.commons.logging.Log;
4 4
import org.apache.commons.logging.LogFactory;
5
import org.apache.solr.client.solrj.impl.CloudSolrClient;
5
import org.apache.solr.client.solrj.impl.CloudSolrServer;
6 6
import org.apache.solr.client.solrj.response.SolrPingResponse;
7 7

  
8 8
/**
......
15 15
	public static CloudIndexClient newIndexClient(final String baseURL, final String collection, final boolean parallelUpdates)
16 16
			throws CloudIndexClientException {
17 17
		try {
18
			final CloudSolrClient client = new CloudSolrClient.Builder().withZkHost(baseURL).build();
18
			final CloudSolrServer client = new CloudSolrServer(baseURL);
19 19

  
20 20
			log.info(String.format("Initializing solr server (%s) ...", baseURL));
21 21

  

Also available in: Unified diff