You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nutch.apache.org by ma...@apache.org on 2010/09/21 05:36:59 UTC

svn commit: r999203 - /nutch/trunk/src/plugin/index-more/src/java/org/apache/nutch/indexer/more/MoreIndexingFilter.java

Author: mattmann
Date: Tue Sep 21 03:36:59 2010
New Revision: 999203

URL: http://svn.apache.org/viewvc?rev=999203&view=rev
Log:
- 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.

Modified:
    nutch/trunk/src/plugin/index-more/src/java/org/apache/nutch/indexer/more/MoreIndexingFilter.java

Modified: nutch/trunk/src/plugin/index-more/src/java/org/apache/nutch/indexer/more/MoreIndexingFilter.java
URL: http://svn.apache.org/viewvc/nutch/trunk/src/plugin/index-more/src/java/org/apache/nutch/indexer/more/MoreIndexingFilter.java?rev=999203&r1=999202&r2=999203&view=diff
==============================================================================
--- nutch/trunk/src/plugin/index-more/src/java/org/apache/nutch/indexer/more/MoreIndexingFilter.java (original)
+++ nutch/trunk/src/plugin/index-more/src/java/org/apache/nutch/indexer/more/MoreIndexingFilter.java Tue Sep 21 03:36:59 2010
@@ -201,7 +201,7 @@ public class MoreIndexingFilter implemen
 
     // Check if we need to split the content type in sub parts
     if (conf.getBoolean("moreIndexingFilter.indexMimeTypeParts", true)) {
-      String[] parts = getParts(contentType);
+      String[] parts = getParts(contentType.toString());
 
       for(String part: parts) {
         doc.add("type", part);