temporary adding the old httpclient-3.1 again because the solrj classes need them. should be removed as soon solrj supports httpclient-4

git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@7831 6c8d7289-2bf4-0310-a012-ef5d649a1542
pull/1/head
orbiter 14 years ago
parent bd99969758
commit d3c89b90ce

@ -45,6 +45,7 @@
<string>$JAVAROOT/lib/bzip2.jar</string>
<string>$JAVAROOT/lib/commons-codec-1.4.jar</string>
<string>$JAVAROOT/lib/commons-fileupload-1.2.2.jar</string>
<string>$JAVAROOT/lib/commons-httpclient-3.1.jar</string>
<string>$JAVAROOT/lib/commons-io-2.0.1.jar</string>
<string>$JAVAROOT/lib/commons-jxpath-1.3.jar</string>
<string>$JAVAROOT/lib/commons-logging-1.1.1.jar</string>

@ -187,6 +187,7 @@
<pathelement location="${lib}/bzip2.jar" />
<pathelement location="${lib}/commons-codec-1.4.jar" />
<pathelement location="${lib}/commons-fileupload-1.2.2.jar" />
<pathelement location="${lib}/commons-httpclient-3.1.jar" />
<pathelement location="${lib}/commons-io-2.0.1.jar" />
<pathelement location="${lib}/commons-jxpath-1.3.jar" />
<pathelement location="${lib}/commons-logging-1.1.1.jar" />

Binary file not shown.

@ -44,6 +44,7 @@ import net.yacy.kelondro.logging.Log;
import org.apache.solr.client.solrj.SolrQuery;
import org.apache.solr.client.solrj.SolrServer;
import org.apache.solr.client.solrj.SolrServerException;
import org.apache.solr.client.solrj.impl.CommonsHttpSolrServer;
import org.apache.solr.client.solrj.request.ContentStreamUpdateRequest;
import org.apache.solr.client.solrj.response.QueryResponse;
import org.apache.solr.common.SolrDocumentList;
@ -72,7 +73,7 @@ public class SolrSingleConnector {
this.transmissionQueue[i] = new ArrayBlockingQueue<SolrInputDocument>(transmissionQueueSize);
}
try {
this.server = new SolrHTTPClient(this.solrurl);
this.server = new CommonsHttpSolrServer(this.solrurl);
} catch (final MalformedURLException e) {
throw new IOException("bad connector url: " + this.solrurl);
}

Loading…
Cancel
Save