From b80104f35093e385302d2d8a680869087e9e758d Mon Sep 17 00:00:00 2001 From: Joe Gilvary Date: Sat, 30 Mar 2024 19:39:38 -0400 Subject: [PATCH] Removed extrneous call to setIndexedConf. Added INFO messages for logging. --- .../nutch/indexer/arbitrary/ArbitraryIndexingFilter.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/plugin/index-arbitrary/src/java/org/apache/nutch/indexer/arbitrary/ArbitraryIndexingFilter.java b/src/plugin/index-arbitrary/src/java/org/apache/nutch/indexer/arbitrary/ArbitraryIndexingFilter.java index 35d538ab54..7677ef7f81 100644 --- a/src/plugin/index-arbitrary/src/java/org/apache/nutch/indexer/arbitrary/ArbitraryIndexingFilter.java +++ b/src/plugin/index-arbitrary/src/java/org/apache/nutch/indexer/arbitrary/ArbitraryIndexingFilter.java @@ -239,8 +239,7 @@ public NutchDocument filter(NutchDocument doc, Parse parse, Text url, public void setConf(Configuration conf) { this.conf = conf; arbitraryAddsCount = conf.getInt("index.arbitrary.function.count",1); - setIndexedConf(conf, 0); - LOG.debug("Called setIndexedConf(0) from setConf and now fieldName is {}", String.valueOf(fieldName)); + LOG.info("Will process the first {} fieldName defs in config.", String.valueOf(arbitraryAddsCount)); } /** @@ -273,6 +272,9 @@ public void setIndexedConf(Configuration conf, int ndx) { methodName = conf.get("index.arbitrary.methodName.".concat(String.valueOf(ndx)),""); methodArgs = conf.getTrimmedStrings("index.arbitrary.methodArgs.".concat(String.valueOf(ndx))); overwrite = conf.getBoolean("index.arbitrary.overwrite.".concat(String.valueOf(ndx)),false); + if (overwrite) { + LOG.info("overwrite set == true for processing {}.", fieldName); + } } /**