Skip to content
Permalink
Browse files

Removed use of deprecated ConcurrentUpdateSolrClient constructor

  • Loading branch information...
luccioman committed May 26, 2018
1 parent 8a749aa commit d28f9ba0f6faa988abb851af111b5160791b6f41
Showing with 5 additions and 1 deletion.
  1. +5 −1 source/net/yacy/cora/federate/solr/instance/RemoteInstance.java
@@ -354,7 +354,11 @@ public SolrClient getServer(String name) {
solrServerURL = u.toString();
ConcurrentLog.info("RemoteSolrConnector", "connecting Solr with url : " + u);
}
s = new ConcurrentUpdateSolrClient(solrServerURL, this.client, 10, Runtime.getRuntime().availableProcessors());
ConcurrentUpdateSolrClient.Builder builder = new ConcurrentUpdateSolrClient.Builder(solrServerURL);
builder.withHttpClient(this.client);
builder.withQueueSize(10);
builder.withThreadCount(Runtime.getRuntime().availableProcessors());
s = builder.build();
} else {
ConcurrentLog.info("RemoteSolrConnector", "connecting Solr with url : " + this.solrurl + name);
ConcurrentUpdateSolrClient.Builder builder = new ConcurrentUpdateSolrClient.Builder(u.toString());

0 comments on commit d28f9ba

Please sign in to comment.
You can’t perform that action at this time.