Skip to content

armgit / nutch

Public Imported from GitHub
0

Apache Nutch is an extensible and scalable web crawler

solved merged conflicts with master, metadata.Nutch.ARG_SEGMENT renamed to ARG_SEGMENTS

Semyon Semyonov7515a576566a
diff --cc src/java/org/apache/nutch/metadata/Nutch.java
index 732b9c041,8d485e5c8..02dfa7268
--- a/src/java/org/apache/nutch/metadata/Nutch.java
+++ b/src/java/org/apache/nutch/metadata/Nutch.java
@@@ -94,8 -95,12 +94,10 @@@ public interface Nutch
/** Argument key to specify the location of a directory of segments for the REST endpoints.
* Similar to the -dir command in the bin/nutch script **/
public static final String ARG_SEGMENTDIR = "segment_dir";
- /** Argument key to specify the location of individual segment for the REST endpoints **/
- public static final String ARG_SEGMENT = "segment";
+ /** Argument key to specify the location of individual segment or list of segments for the REST endpoints. The behavior differs for diffirent endpoints: CrawlDb, LinkDb and Indexing Jobs take list of segments, Fetcher and Parse segment take one segment **/
+ public static final String ARG_SEGMENTS = "segment";
+ /** Argument key to specify the location of hostdb for the REST endpoints **/
+ public static final String ARG_HOSTDB = "hostdb";
-
-
/** Title key in the Pub/Sub event metadata for the title of the parsed page*/
public static final String FETCH_EVENT_TITLE = "title";
/** Content-type key in the Pub/Sub event metadata for the content-type of the parsed page*/