You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@nutch.apache.org by "Julien Nioche (JIRA)" <ji...@apache.org> on 2013/04/18 12:01:18 UTC

[jira] [Created] (NUTCH-1562) Order of execution for scoring filters

Julien Nioche created NUTCH-1562:
------------------------------------

             Summary: Order of execution for scoring filters
                 Key: NUTCH-1562
                 URL: https://issues.apache.org/jira/browse/NUTCH-1562
             Project: Nutch
          Issue Type: Bug
          Components: documentation
    Affects Versions: 2.1, 1.6
            Reporter: Julien Nioche
             Fix For: 1.7, 2.2


The documentation in nutch-default.xml states that :

{quote}
<property>
  <name>scoring.filter.order</name>
  <value></value>
  <description>The order in which scoring filters are applied.
  This may be left empty (in which case all available scoring
  filters will be applied in the order defined in plugin-includes
  and plugin-excludes), or a space separated list of implementation
  classes.
  </description>
</property>
{quote}

however if no order is specified the filters are ordered randomly and not in the order defined in plugin-includes.

The other *order parameters (e.g. urlfilter.order) have a different documentation and "are loaded and applied in system defined order" which corresponds to what the code does.

The patch attached is for 1.x and puts the code in accordance with the documentation by ordering the filters according to the order of the plugins, which gives users more control without having to specify the classes explicitly in scoring.filter.order.

We could extend the same idea to the other *order params.






--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira