From 25f0260cfee4de075e9dc520ca870fcbd077780f Mon Sep 17 00:00:00 2001 From: Tilman Hausherr Date: Sat, 14 Dec 2024 11:49:52 +0100 Subject: [PATCH] TIKA-4327: replace (some) deprecated --- .../org/apache/tika/pipes/emitter/solr/SolrEmitter.java | 6 +++--- 1 file changed, 3 insertions(+), 3 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 d5655ddd90..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 @@ -326,9 +326,9 @@ public void initialize(Map params) throws TikaConfigException { .build(); } else { - solrClient = new LBHttpSolrClient.Builder().withConnectionTimeout(connectionTimeout) - .withSocketTimeout(socketTimeout).withHttpClient(httpClientFactory.build()) - .withBaseSolrUrls(solrUrls.toArray(new String[]{})).build(); + solrClient = new LBHttpSolrClient.Builder().withConnectionTimeout(connectionTimeout, TimeUnit.MILLISECONDS) + .withSocketTimeout(socketTimeout, TimeUnit.MILLISECONDS).withHttpClient(httpClientFactory.build()) + .withBaseEndpoints(solrUrls.toArray(new String[]{})).build(); } }