Shinsuke Sugaya 9 سال پیش
والد
کامیت
684507731e
2فایلهای تغییر یافته به همراه27 افزوده شده و 0 حذف شده
  1. 26 0
      src/main/java/org/codelibs/fess/mylasta/direction/FessConfig.java
  2. 1 0
      src/main/resources/fess_config.properties

+ 26 - 0
src/main/java/org/codelibs/fess/mylasta/direction/FessConfig.java

@@ -176,6 +176,9 @@ public interface FessConfig extends FessEnv, org.codelibs.fess.mylasta.direction
     /** The key of the configuration. e.g. true */
     /** The key of the configuration. e.g. true */
     String CRAWLER_DOCUMENT_FILE_APPEND_BODY_CONTENT = "crawler.document.file.append.body.content";
     String CRAWLER_DOCUMENT_FILE_APPEND_BODY_CONTENT = "crawler.document.file.append.body.content";
 
 
+    /** The key of the configuration. e.g.  */
+    String CRAWLER_DOCUMENT_FILE_DEFAULT_LANG = "crawler.document.file.default.lang";
+
     /** The key of the configuration. e.g. true */
     /** The key of the configuration. e.g. true */
     String CRAWLER_DOCUMENT_CACHE_ENABLE = "crawler.document.cache.enable";
     String CRAWLER_DOCUMENT_CACHE_ENABLE = "crawler.document.cache.enable";
 
 
@@ -1065,6 +1068,21 @@ public interface FessConfig extends FessEnv, org.codelibs.fess.mylasta.direction
      */
      */
     boolean isCrawlerDocumentFileAppendBodyContent();
     boolean isCrawlerDocumentFileAppendBodyContent();
 
 
+    /**
+     * Get the value for the key 'crawler.document.file.default.lang'. <br>
+     * The value is, e.g.  <br>
+     * @return The value of found property. (NotNull: if not found, exception but basically no way)
+     */
+    String getCrawlerDocumentFileDefaultLang();
+
+    /**
+     * Get the value for the key 'crawler.document.file.default.lang' as {@link Integer}. <br>
+     * The value is, e.g.  <br>
+     * @return The value of found property. (NotNull: if not found, exception but basically no way)
+     * @throws NumberFormatException When the property is not integer.
+     */
+    Integer getCrawlerDocumentFileDefaultLangAsInteger();
+
     /**
     /**
      * Get the value for the key 'crawler.document.cache.enable'. <br>
      * Get the value for the key 'crawler.document.cache.enable'. <br>
      * The value is, e.g. true <br>
      * The value is, e.g. true <br>
@@ -2673,6 +2691,14 @@ public interface FessConfig extends FessEnv, org.codelibs.fess.mylasta.direction
             return is(FessConfig.CRAWLER_DOCUMENT_FILE_APPEND_BODY_CONTENT);
             return is(FessConfig.CRAWLER_DOCUMENT_FILE_APPEND_BODY_CONTENT);
         }
         }
 
 
+        public String getCrawlerDocumentFileDefaultLang() {
+            return get(FessConfig.CRAWLER_DOCUMENT_FILE_DEFAULT_LANG);
+        }
+
+        public Integer getCrawlerDocumentFileDefaultLangAsInteger() {
+            return getAsInteger(FessConfig.CRAWLER_DOCUMENT_FILE_DEFAULT_LANG);
+        }
+
         public String getCrawlerDocumentCacheEnable() {
         public String getCrawlerDocumentCacheEnable() {
             return get(FessConfig.CRAWLER_DOCUMENT_CACHE_ENABLE);
             return get(FessConfig.CRAWLER_DOCUMENT_CACHE_ENABLE);
         }
         }

+ 1 - 0
src/main/resources/fess_config.properties

@@ -96,6 +96,7 @@ crawler.document.file.max.title.length=100
 crawler.document.file.max.digest.length=200
 crawler.document.file.max.digest.length=200
 crawler.document.file.append.meta.content=true
 crawler.document.file.append.meta.content=true
 crawler.document.file.append.body.content=true
 crawler.document.file.append.body.content=true
+crawler.document.file.default.lang=
 
 
 # cache
 # cache
 crawler.document.cache.enable=true
 crawler.document.cache.enable=true