yfujita hace 10 años
padre
commit
aa93e5db14
Se han modificado 1 ficheros con 8 adiciones y 1 borrados
  1. 8 1
      src/main/java/jp/sf/fess/job/CrawlJob.java

+ 8 - 1
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");