Author: lewismc Date: Sun Sep 11 19:13:38 2011 New Revision: 1169502 URL: http://svn.apache.org/viewvc?rev=1169502&view=rev Log: commit to address final patch for NUTCH-940 1.4 branch.
Added: nutch/branches/branch-1.4/src/plugin/index-static/src/java/org/apache/nutch/indexer/staticfield/package.html Modified: nutch/branches/branch-1.4/src/plugin/index-static/src/java/org/apache/nutch/indexer/staticfield/StaticFieldIndexer.java Modified: nutch/branches/branch-1.4/src/plugin/index-static/src/java/org/apache/nutch/indexer/staticfield/StaticFieldIndexer.java URL: http://svn.apache.org/viewvc/nutch/branches/branch-1.4/src/plugin/index-static/src/java/org/apache/nutch/indexer/staticfield/StaticFieldIndexer.java?rev=1169502&r1=1169501&r2=1169502&view=diff ============================================================================== --- nutch/branches/branch-1.4/src/plugin/index-static/src/java/org/apache/nutch/indexer/staticfield/StaticFieldIndexer.java (original) +++ nutch/branches/branch-1.4/src/plugin/index-static/src/java/org/apache/nutch/indexer/staticfield/StaticFieldIndexer.java Sun Sep 11 19:13:38 2011 @@ -29,6 +29,11 @@ import org.apache.nutch.parse.Parse; import org.apache.hadoop.io.Text; import org.apache.hadoop.conf.Configuration; +/** A simple plugin called at indexing that adds fields with static data. + * You can specify a list of fieldname:fieldcontent per nutch job. + * It can be useful when collections can't be created by urlpatterns, + * like in subcollection, but on a job-basis. */ + public class StaticFieldIndexer implements IndexingFilter { private Configuration conf; private HashMap<String, String[]> fields; Added: nutch/branches/branch-1.4/src/plugin/index-static/src/java/org/apache/nutch/indexer/staticfield/package.html URL: http://svn.apache.org/viewvc/nutch/branches/branch-1.4/src/plugin/index-static/src/java/org/apache/nutch/indexer/staticfield/package.html?rev=1169502&view=auto ============================================================================== --- nutch/branches/branch-1.4/src/plugin/index-static/src/java/org/apache/nutch/indexer/staticfield/package.html (added) +++ nutch/branches/branch-1.4/src/plugin/index-static/src/java/org/apache/nutch/indexer/staticfield/package.html Sun Sep 11 19:13:38 2011 @@ -0,0 +1,5 @@ +<html> +<body> +<p>A simple plugin called at indexing that adds fields with static data. You can specify a list of fieldname:fieldcontent per nutch job. It can be useful when collections can't be created by urlpatterns, like in subcollection, but on a job-basis.</p><p></p> +</body> +</html>