[ 
https://issues.apache.org/jira/browse/NUTCH-412?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Brian Whitman updated NUTCH-412:
--------------------------------

    Attachment: FeedUrlFilter.java

Attaching new FeedUrlFilter.java that compiles against trunk. To get this in 
your index, add this to more indexing filter:


  // Add feed-URL if NUTCH-412 is in
  private Document addFeedURL(Document doc, ParseData data, String url) {
    String feedURL = data.getMeta("feedUrl");
    if (feedURL != null)
      doc.add(new Field("feedURL", feedURL, Field.Store.YES, 
Field.Index.UN_TOKENIZED));
    return doc;
  }


> plugin to parse the feed-url (rss/atom) of a blog
> -------------------------------------------------
>
>                 Key: NUTCH-412
>                 URL: https://issues.apache.org/jira/browse/NUTCH-412
>             Project: Nutch
>          Issue Type: New Feature
>    Affects Versions: 0.9.0
>            Reporter: Renaud Richardet
>            Priority: Minor
>         Attachments: FeedUrlFilter.java, plugin_parse-feedUrl.diff, 
> plugin_parse-feedUrl2.diff
>
>
> A plugin that extracts the feed-url (rss/atom) of a blog by retrieving the 
> href from the <head><link> element (if found), and stores it in metadata. 
> The meta can be accessed with 
> parse.getData().getMeta("feedUrl");
> you can test this plugin with the main method of HtmlParser.
> Thanks for a feedback.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to