Skip to content

Commit

Permalink
Removed extrneous call to setIndexedConf. Added INFO messages for log…
Browse files Browse the repository at this point in the history
…ging.
  • Loading branch information
CatChullain committed Mar 30, 2024
1 parent c96e1be commit b80104f
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}

/**
Expand Down Expand Up @@ -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);
}
}

/**
Expand Down

0 comments on commit b80104f

Please sign in to comment.