Class IndexUpdater

  • All Implemented Interfaces:
    Runnable

    public class IndexUpdater
    extends Thread
    • Field Detail

      • sessionIdList

        protected List<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 List<String> finishedSessionIdList
    • Constructor Detail

      • IndexUpdater

        public IndexUpdater()
    • Method Detail

      • init

        @PostConstruct
        public void init()
      • destroy

        @PreDestroy
        public void destroy()
      • addFinishedSessionId

        public void addFinishedSessionId​(String sessionId)
      • run

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

        protected void updateDocument​(Map<String,​Object> map)
      • addBoostValue

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

        protected void addClickCountField​(Map<String,​Object> doc)
      • addFavoriteCountField

        protected void addFavoriteCountField​(Map<String,​Object> map)
      • getExecuteTime

        public long getExecuteTime()
      • getSessionIdList

        public List<String> getSessionIdList()
      • setSessionIdList

        public void setSessionIdList​(List<String> sessionIdList)
      • setFinishCrawling

        public void setFinishCrawling​(boolean finishCrawling)
      • getDocumentSize

        public long getDocumentSize()
      • setMaxIndexerErrorCount

        public void setMaxIndexerErrorCount​(int maxIndexerErrorCount)
      • addDocBoostMatcher

        public void addDocBoostMatcher​(DocBoostMatcher rule)
      • setCrawlerList

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