Project

General

Profile

« Previous | Next » 

Revision 53827

fixed client initialisation

View differences:

modules/dnet-index-client/branches/solr75/src/main/java/eu/dnetlib/functionality/index/client/solr/SolrIndexClient.java
225 225
			log.debug("create new Client " + url);
226 226

  
227 227
			final ZkServers zk = ZkServers.newInstance(url);
228
			final CloudSolrClient client = new CloudSolrClient.Builder(zk.getHosts(), zk.getChroot()).build();
228
			client = new CloudSolrClient.Builder(zk.getHosts(), zk.getChroot()).build();
229 229

  
230 230
			client.connect();
231 231
			client.setDefaultCollection(String.format("%s-%s-%s", getFormat(), getLayout(), getInterpretation()));

Also available in: Unified diff