This is an automated email from the ASF dual-hosted git repository. markus pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/nutch.git
The following commit(s) were added to refs/heads/master by this push: new 5150c44 NUTCH-2723 Indexer Solr not to decode URLs before deletion new 9692464 Merge branch 'master' of https://gitbox.apache.org/repos/asf/nutch 5150c44 is described below commit 5150c442a78d15c042ee6fb12e6dbea8ec5341e6 Author: Markus Jelsma <mar...@apache.org> AuthorDate: Fri Jul 12 12:09:34 2019 +0200 NUTCH-2723 Indexer Solr not to decode URLs before deletion --- .../org/apache/nutch/indexwriter/solr/SolrIndexWriter.java | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/src/plugin/indexer-solr/src/java/org/apache/nutch/indexwriter/solr/SolrIndexWriter.java b/src/plugin/indexer-solr/src/java/org/apache/nutch/indexwriter/solr/SolrIndexWriter.java index 475d313..cc2e8d7 100644 --- a/src/plugin/indexer-solr/src/java/org/apache/nutch/indexwriter/solr/SolrIndexWriter.java +++ b/src/plugin/indexer-solr/src/java/org/apache/nutch/indexwriter/solr/SolrIndexWriter.java @@ -18,8 +18,6 @@ package org.apache.nutch.indexwriter.solr; import java.lang.invoke.MethodHandles; import java.io.IOException; -import java.io.UnsupportedEncodingException; -import java.net.URLDecoder; import java.time.format.DateTimeFormatter; import java.util.AbstractMap; import java.util.ArrayList; @@ -153,16 +151,6 @@ public class SolrIndexWriter implements IndexWriter { } public void delete(String key) throws IOException { - try { - key = URLDecoder.decode(key, "UTF8"); - } catch (UnsupportedEncodingException e) { - LOG.error("Error decoding: " + key); - throw new IOException("UnsupportedEncodingException for " + key); - } catch (IllegalArgumentException e) { - LOG.warn("Could not decode: " + key - + ", it probably wasn't encoded in the first place.."); - } - // escape solr hash separator key = key.replaceAll("!", "\\!");