From 942896fe4684a17a09b02d770ecd087c37f7ca50 Mon Sep 17 00:00:00 2001 From: Michael Peter Christen Date: Fri, 27 Apr 2012 18:26:36 +0200 Subject: [PATCH] removed methods not supported by new solrj connector for httpclient 4 Error was: java.lang.UnsupportedOperationException: Client was created outside of HttpSolrServer at org.apache.solr.client.solrj.impl.HttpSolrServer.setDefaultMaxConnectionsPerHost(HttpSolrServer.java:614) at net.yacy.cora.services.federated.solr.SolrSingleConnector.(SolrSingleConnector.java:128) at net.yacy.cora.services.federated.solr.SolrShardingConnector.(SolrShardingConnector.java:55) at net.yacy.search.Switchboard.(Switchboard.java:657) at net.yacy.yacy.startup(yacy.java:222) at net.yacy.yacy.main(yacy.java:1018) --- .../yacy/cora/services/federated/solr/SolrSingleConnector.java | 2 -- 1 file changed, 2 deletions(-) diff --git a/source/net/yacy/cora/services/federated/solr/SolrSingleConnector.java b/source/net/yacy/cora/services/federated/solr/SolrSingleConnector.java index 2739126ac..500db723b 100644 --- a/source/net/yacy/cora/services/federated/solr/SolrSingleConnector.java +++ b/source/net/yacy/cora/services/federated/solr/SolrSingleConnector.java @@ -125,8 +125,6 @@ public class SolrSingleConnector implements SolrConnector { } else { this.server = new HttpSolrServer(this.solrurl); } - this.server.setDefaultMaxConnectionsPerHost( 128 ); - this.server.setMaxTotalConnections( 256 ); // start worker this.transmissionWorker = new Worker[transmissionQueueCount];