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.<init>(SolrSingleConnector.java:128)
	at
net.yacy.cora.services.federated.solr.SolrShardingConnector.<init>(SolrShardingConnector.java:55)
	at net.yacy.search.Switchboard.<init>(Switchboard.java:657)
	at net.yacy.yacy.startup(yacy.java:222)
	at net.yacy.yacy.main(yacy.java:1018)
pull/1/head
Michael Peter Christen 13 years ago
parent 22e1f68c0b
commit 942896fe46

@ -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];

Loading…
Cancel
Save