diff --git a/src/main/java/jp/sf/fess/job/CrawlJob.java b/src/main/java/jp/sf/fess/job/CrawlJob.java index 0e7d4f6c1..6d9bf0715 100644 --- a/src/main/java/jp/sf/fess/job/CrawlJob.java +++ b/src/main/java/jp/sf/fess/job/CrawlJob.java @@ -50,6 +50,8 @@ public class CrawlJob { protected String sessionId; + protected String namespace = Constants.CRAWLING_SESSION_SYSTEM_NAME; + protected String[] webConfigIds; protected String[] fileConfigIds; @@ -76,6 +78,11 @@ public class CrawlJob { return this; } + public CrawlJob namespace(final String namespace) { + this.namespace = namespace; + return this; + } + public CrawlJob operation(final String operation) { this.operation = operation; return this; @@ -280,7 +287,7 @@ public class CrawlJob { crawlerCmdList.add("--sessionId"); crawlerCmdList.add(sessionId); crawlerCmdList.add("--name"); - crawlerCmdList.add(Constants.CRAWLING_SESSION_SYSTEM_NAME); + crawlerCmdList.add(namespace); if (webConfigIds != null && webConfigIds.length > 0) { crawlerCmdList.add("-w");