You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@nutch.apache.org by "Zain Us Sami Ahmed (JIRA)" <ji...@apache.org> on 2011/05/28 10:18:47 UTC

[jira] [Commented] (NUTCH-828) Fetch Filter

    [ https://issues.apache.org/jira/browse/NUTCH-828?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13040560#comment-13040560 ] 

Zain Us Sami Ahmed commented on NUTCH-828:
------------------------------------------

I have implemented this filter to filter out pages not containing urdu language, but this filter kills the seed and hence I am not able to crawl the whole web.

> Fetch Filter
> ------------
>
>                 Key: NUTCH-828
>                 URL: https://issues.apache.org/jira/browse/NUTCH-828
>             Project: Nutch
>          Issue Type: New Feature
>          Components: fetcher
>         Environment: All
>            Reporter: Dennis Kubes
>            Assignee: Dennis Kubes
>             Fix For: 2.0
>
>         Attachments: NUTCH-828-1-20100608.patch, NUTCH-828-2-20100608.patch
>
>
> Adds a Nutch extension point for a fetch filter.  The fetch filter allows filtering content and parse data/text after it is fetched but before it is written to segments.  The fliter can return true if content is to be written or false if it is not.  
> Some use cases for this filter would be topical search engines that only want to fetch/index certain types of content, for example a news or sports only search engine.  In these types of situations the only way to determine if content belongs to a particular set is to fetch the page and then analyze the content.  If the content passes, meaning belongs to the set of say sports pages, then we want to include it.  If it doesn't then we want to ignore it, never fetch that same page in the future, and ignore any urls on that page.  If content is rejected due to a fetch filter then its status is written to the CrawlDb as gone and its content is ignored and not written to segments.  This effectively stop crawling along the crawl path of that page and the urls from that page.  An example filter, fetch-safe, is provided that allows fetching content that does not contain a list of bad words.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira