Class LanguageHelper

java.lang.Object
org.codelibs.fess.helper.LanguageHelper

public class LanguageHelper extends Object
  • Field Details

    • langFields

      protected String[] langFields
    • supportedLanguages

      protected String[] supportedLanguages
    • detector

      protected org.apache.tika.language.detect.LanguageDetector detector
    • maxTextLength

      protected int maxTextLength
  • Constructor Details

    • LanguageHelper

      public LanguageHelper()
  • Method Details

    • init

      @PostConstruct public void init()
    • updateDocument

      public void updateDocument(Map<String,Object> doc)
    • detectLanguage

      protected String detectLanguage(String text)
    • getDetectText

      protected String getDetectText(String text)
    • getSupportedLanguage

      protected String getSupportedLanguage(String lang)
    • setDetector

      public void setDetector(org.apache.tika.language.detect.LanguageDetector detector)
    • createScript

      public org.opensearch.script.Script createScript(Map<String,Object> doc, String code)
    • getReindexScriptSource

      public String getReindexScriptSource()