Skip to content

Commit

Permalink
TIKA-4327: restore deprecated
Browse files Browse the repository at this point in the history
  • Loading branch information
THausherr committed Dec 14, 2024
1 parent 84343b8 commit d111cad
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -326,7 +326,7 @@ public void initialize(Map<String, Param> 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();
}
Expand Down

0 comments on commit d111cad

Please sign in to comment.