Package org.codelibs.fess.indexer
Class IndexUpdater
java.lang.Object
java.lang.Thread
org.codelibs.fess.indexer.IndexUpdater
- All Implemented Interfaces:
Runnable
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Thread
Thread.State, Thread.UncaughtExceptionHandler -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ClickLogBhvprotected org.codelibs.fess.crawler.service.DataService<org.codelibs.fess.crawler.entity.EsAccessResult>protected longprotected longprotected FavoriteLogBhvprotected booleanprotected IndexingHelperprotected intprotected intprotected SearchEngineClientprotected SystemHelperprotected org.codelibs.fess.crawler.service.UrlFilterServiceprotected org.codelibs.fess.crawler.service.UrlQueueService<org.codelibs.fess.crawler.entity.EsUrlQueue>Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddBoostValue(Map<String, Object> map, float documentBoost) protected voidaddClickCountField(Map<String, Object> doc) voidprotected voidaddFavoriteCountField(Map<String, Object> map) voidaddFinishedSessionId(String sessionId) voiddestroy()longlongvoidinit()voidrun()voidsetCrawlerList(List<org.codelibs.fess.crawler.Crawler> crawlerList) static voidvoidsetFinishCrawling(boolean finishCrawling) voidsetMaxIndexerErrorCount(int maxIndexerErrorCount) voidsetSessionIdList(List<String> sessionIdList) voidprotected voidupdateDocument(Map<String, Object> map) Methods inherited from class java.lang.Thread
activeCount, checkAccess, clone, countStackFrames, currentThread, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, onSpinWait, resume, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, suspend, toString, yield
-
Field Details
-
sessionIdList
-
searchEngineClient
-
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 -
clickLogBhv
-
favoriteLogBhv
-
systemHelper
-
indexingHelper
-
finishCrawling
protected boolean finishCrawling -
executeTime
protected long executeTime -
documentSize
protected long documentSize -
maxIndexerErrorCount
protected int maxIndexerErrorCount -
maxErrorCount
protected int maxErrorCount -
finishedSessionIdList
-
-
Constructor Details
-
IndexUpdater
public IndexUpdater()
-
-
Method Details
-
init
@PostConstruct public void init() -
destroy
@PreDestroy public void destroy() -
addFinishedSessionId
-
run
public void run() -
ingest
-
updateDocument
-
addBoostValue
-
addClickCountField
-
addFavoriteCountField
-
getExecuteTime
public long getExecuteTime() -
getSessionIdList
-
setSessionIdList
-
setFinishCrawling
public void setFinishCrawling(boolean finishCrawling) -
getDocumentSize
public long getDocumentSize() -
setUncaughtExceptionHandler
- Overrides:
setUncaughtExceptionHandlerin classThread
-
setDefaultUncaughtExceptionHandler
-
setMaxIndexerErrorCount
public void setMaxIndexerErrorCount(int maxIndexerErrorCount) -
addDocBoostMatcher
-
setCrawlerList
-