Class IndexUpdater

  • All Implemented Interfaces:
    java.lang.Runnable

    public class IndexUpdater
    extends java.lang.Thread
    • Field Detail

      • sessionIdList

        protected java.util.List<java.lang.String> sessionIdList
      • dataService

        protected org.codelibs.fess.crawler.service.DataService<org.codelibs.fess.crawler.entity.EsAccessResult> dataService
      • urlQueueService

        protected org.codelibs.fess.crawler.service.UrlQueueService<org.codelibs.fess.crawler.entity.EsUrlQueue> urlQueueService
      • urlFilterService

        protected org.codelibs.fess.crawler.service.UrlFilterService urlFilterService
      • finishCrawling

        protected boolean finishCrawling
      • executeTime

        protected long executeTime
      • documentSize

        protected long documentSize
      • maxIndexerErrorCount

        protected int maxIndexerErrorCount
      • maxErrorCount

        protected int maxErrorCount
      • finishedSessionIdList

        protected java.util.List<java.lang.String> finishedSessionIdList
    • Constructor Detail

      • IndexUpdater

        public IndexUpdater()
    • Method Detail

      • destroy

        @PreDestroy
        public void destroy()
      • addFinishedSessionId

        public void addFinishedSessionId​(java.lang.String sessionId)
      • run

        public void run()
        Specified by:
        run in interface java.lang.Runnable
        Overrides:
        run in class java.lang.Thread
      • updateDocument

        protected void updateDocument​(java.util.Map<java.lang.String,​java.lang.Object> map)
      • addBoostValue

        protected void addBoostValue​(java.util.Map<java.lang.String,​java.lang.Object> map,
                                     float documentBoost)
      • addClickCountField

        protected void addClickCountField​(java.util.Map<java.lang.String,​java.lang.Object> doc)
      • addFavoriteCountField

        protected void addFavoriteCountField​(java.util.Map<java.lang.String,​java.lang.Object> map)
      • getExecuteTime

        public long getExecuteTime()
      • getSessionIdList

        public java.util.List<java.lang.String> getSessionIdList()
      • setSessionIdList

        public void setSessionIdList​(java.util.List<java.lang.String> sessionIdList)
      • setFinishCrawling

        public void setFinishCrawling​(boolean finishCrawling)
      • getDocumentSize

        public long getDocumentSize()
      • setUncaughtExceptionHandler

        public void setUncaughtExceptionHandler​(java.lang.Thread.UncaughtExceptionHandler eh)
        Overrides:
        setUncaughtExceptionHandler in class java.lang.Thread
      • setDefaultUncaughtExceptionHandler

        public static void setDefaultUncaughtExceptionHandler​(java.lang.Thread.UncaughtExceptionHandler eh)
      • setMaxIndexerErrorCount

        public void setMaxIndexerErrorCount​(int maxIndexerErrorCount)
      • addDocBoostMatcher

        public void addDocBoostMatcher​(DocBoostMatcher rule)
      • setCrawlerList

        public void setCrawlerList​(java.util.List<org.codelibs.fess.crawler.Crawler> crawlerList)