Apache Nutch is an extensible and scalable web crawler
- fix for NUTCH-901 Make index-more plug-in configurable: Nutch2.0 contentType is an Avro UT8, and thus not a String. call toString() on it to convert.
Chris Mattmann8ef34f22a4e2
diff --git a/src/plugin/index-more/src/java/org/apache/nutch/indexer/more/MoreIndexingFilter.java b/src/plugin/index-more/src/java/org/apache/nutch/indexer/more/MoreIndexingFilter.javaindex 15bd28fc0..21cdd34ad 100644--- a/src/plugin/index-more/src/java/org/apache/nutch/indexer/more/MoreIndexingFilter.java+++ b/src/plugin/index-more/src/java/org/apache/nutch/indexer/more/MoreIndexingFilter.java@@ -201,7 +201,7 @@ public class MoreIndexingFilter implements IndexingFilter {// Check if we need to split the content type in sub partsif (conf.getBoolean("moreIndexingFilter.indexMimeTypeParts", true)) {- String[] parts = getParts(contentType);+ String[] parts = getParts(contentType.toString());for(String part: parts) {doc.add("type", part);