Skip to content

armgit / nutch

Public Imported from GitHub
0

Apache Nutch is an extensible and scalable web crawler

commit to address final patch for NUTCH-940 1.4 branch.

Lewis John McGibbney59665eb0a363
diff --git a/src/plugin/index-static/src/java/org/apache/nutch/indexer/staticfield/StaticFieldIndexer.java b/src/plugin/index-static/src/java/org/apache/nutch/indexer/staticfield/StaticFieldIndexer.java
index a91b47272..47e741905 100644
--- a/src/plugin/index-static/src/java/org/apache/nutch/indexer/staticfield/StaticFieldIndexer.java
+++ b/src/plugin/index-static/src/java/org/apache/nutch/indexer/staticfield/StaticFieldIndexer.java
@@ -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;
diff --git a/src/plugin/index-static/src/java/org/apache/nutch/indexer/staticfield/package.html b/src/plugin/index-static/src/java/org/apache/nutch/indexer/staticfield/package.html
new file mode 100644
index 000000000..f4b514609
--- /dev/null
+++ b/src/plugin/index-static/src/java/org/apache/nutch/indexer/staticfield/package.html
@@ -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>