nutch-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Eelco Lempsink (JIRA)" <j...@apache.org>
Subject [jira] Commented: (NUTCH-393) Indexer doesn't handle null documents returned by filters
Date Tue, 07 Nov 2006 22:14:51 GMT
    [ http://issues.apache.org/jira/browse/NUTCH-393?page=comments#action_12447939 ] 
            
Eelco Lempsink commented on NUTCH-393:
--------------------------------------

I'm not sure I agree with that. After running a document through a set of filters you'd expect
all filters ran. If not, that's an exception.  For instance, your index might depend on all
numbers and non-english words being stripped. When one of those filters hits an exception,
but the other one runs, your index will become dirty.

> Indexer doesn't handle null documents returned by filters
> ---------------------------------------------------------
>
>                 Key: NUTCH-393
>                 URL: http://issues.apache.org/jira/browse/NUTCH-393
>             Project: Nutch
>          Issue Type: Bug
>          Components: indexer
>    Affects Versions: 0.8.1
>            Reporter: Eelco Lempsink
>         Attachments: NUTCH-393.patch
>
>
> Plugins (like IndexingFilter) may return a null value, but this isn't handled by the
Indexer.  A trivial adjustment is all it takes:
> @@ -237,6 +237,7 @@
>        if (LOG.isWarnEnabled()) { LOG.warn("Error indexing "+key+": "+e); }
>        return;
>      }
> +    if (doc == null) return;
>  
>      float boost = 1.0f;
>      // run scoring filters

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message