Uploaded image for project: 'Nutch'
  1. Nutch
  2. NUTCH-490

Extension point with filters for Neko HTML parser (with patch)

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 0.9.0
    • None
    • parser
    • None
    • Any

    • Patch Available

    Description

      In my project I need to set filters for Neko HTML parser. So instead of adding it hard coded, I made an extension point to define filters for Neko. I was fallowing the code for HtmlParser filters. In fact the method to get filters I think could be generalized to handle both cases. But I didn't want to make too big mess.

      The attached patch is for Nutch 0.9. This part of code wasn't changed in trunk, so should be applicable easily.

      BTW. I wonder if it wouldn't be best to have HTML DOM Parsing defined by extension point itself. Now there are options for Neko and TagSoap. But if someone would like to use something else or set give different settings for the parser, he would need to modify HtmlParser class, instead of replacing a plugin.

      Attachments

        1. nutch-extensionpoins_plugin.xml.diff
          0.5 kB
          Marcin Okraszewski
        2. NekoFilters_for_1.0.patch
          27 kB
          Marcin Okraszewski
        3. HtmlParser.java.diff
          3 kB
          Marcin Okraszewski

        Activity

          People

            Unassigned Unassigned
            okrasz Marcin Okraszewski
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: