Github user lewismc commented on a diff in the pull request:
https://github.com/apache/nutch/pull/92#discussion_r54332201
--- Diff:
src/plugin/parse-tika/src/java/org/apache/nutch/parse/tika/TikaParser.java ---
@@ -109,7 +114,18 @@ public Parse getParse(String url, WebPage page) {
HTMLDocumentImpl doc = new HTMLDocumentImpl();
doc.setErrorChecking(false);
DocumentFragment root = doc.createDocumentFragment();
- DOMBuilder domhandler = new DOMBuilder(doc, root);
+ // DOMBuilder domhandler = new DOMBuilder(doc, root);
+ ContentHandler domHandler;
+ // Check whether to use Tika's BoilerplateContentHandler
+ if (useBoilerpipe) {
+ LOG.debug("Using Tikas's Boilerpipe with Extractor: " +
boilerpipeExtractorName);
--- End diff --
Can also use more efficient slf4j convention
logger.debug("The entry is {}.", entry);
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---