From d111cada5230fe6f72e682e549e8cffd4f0198cc Mon Sep 17 00:00:00 2001 From: Tilman Hausherr Date: Sat, 14 Dec 2024 17:18:54 +0100 Subject: [PATCH] TIKA-4327: restore deprecated --- .../java/org/apache/tika/pipes/emitter/solr/SolrEmitter.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tika-pipes/tika-emitters/tika-emitter-solr/src/main/java/org/apache/tika/pipes/emitter/solr/SolrEmitter.java b/tika-pipes/tika-emitters/tika-emitter-solr/src/main/java/org/apache/tika/pipes/emitter/solr/SolrEmitter.java index 7a9713743f..4b17ee64f1 100644 --- a/tika-pipes/tika-emitters/tika-emitter-solr/src/main/java/org/apache/tika/pipes/emitter/solr/SolrEmitter.java +++ b/tika-pipes/tika-emitters/tika-emitter-solr/src/main/java/org/apache/tika/pipes/emitter/solr/SolrEmitter.java @@ -30,7 +30,7 @@ import org.apache.solr.client.solrj.SolrClient; import org.apache.solr.client.solrj.impl.CloudSolrClient; import org.apache.solr.client.solrj.impl.Http2SolrClient; -import org.apache.solr.client.solrj.impl.LBHttp2SolrClient; +import org.apache.solr.client.solrj.impl.LBHttpSolrClient; import org.apache.solr.client.solrj.request.UpdateRequest; import org.apache.solr.client.solrj.response.UpdateResponse; import org.apache.solr.common.SolrInputDocument; @@ -326,7 +326,7 @@ public void initialize(Map params) throws TikaConfigException { .build(); } else { - solrClient = new LBHttp2SolrClient.Builder().withConnectionTimeout(connectionTimeout, TimeUnit.MILLISECONDS) + solrClient = new LBHttpSolrClient.Builder().withConnectionTimeout(connectionTimeout, TimeUnit.MILLISECONDS) .withSocketTimeout(socketTimeout, TimeUnit.MILLISECONDS).withHttpClient(httpClientFactory.build()) .withBaseEndpoints(solrUrls.toArray(new String[]{})).build(); }