Package org.codelibs.fess.helper
Class WebFsIndexHelper
java.lang.Object
org.codelibs.fess.helper.WebFsIndexHelper
Helper class for web and file system crawling and indexing operations.
Manages the crawling process for both web configurations and file configurations,
coordinating multiple crawler threads and handling indexing operations.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final List<org.codelibs.fess.crawler.Crawler> Synchronized list of active crawlers.protected intThread priority for crawler operations.protected longInterval time in milliseconds between crawling executions.protected intThread priority for index updater operations.protected longMaximum number of URLs to access during crawling. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidInitiates crawling for specified web and file configurations.protected voiddeleteCrawlData(String sid) Deletes crawl data for the specified session ID.protected voiddoCrawl(String sessionId, List<org.codelibs.fess.opensearch.config.exentity.WebConfig> webConfigList, List<org.codelibs.fess.opensearch.config.exentity.FileConfig> fileConfigList) Performs the actual crawling operation for the provided configurations.protected List<org.codelibs.fess.opensearch.config.exentity.BoostDocumentRule> Gets the list of available boost document rules.voidsetCrawlerPriority(int crawlerPriority) Sets the thread priority for crawler operations.voidsetCrawlingExecutionInterval(long crawlingExecutionInterval) Sets the interval time between crawling executions.voidsetIndexUpdaterPriority(int indexUpdaterPriority) Sets the thread priority for index updater operations.voidsetMaxAccessCount(long maxAccessCount) Sets the maximum number of URLs to access during crawling.
-
Field Details
-
maxAccessCount
protected long maxAccessCountMaximum number of URLs to access during crawling. -
crawlingExecutionInterval
protected long crawlingExecutionIntervalInterval time in milliseconds between crawling executions. -
indexUpdaterPriority
protected int indexUpdaterPriorityThread priority for index updater operations. -
crawlerPriority
protected int crawlerPriorityThread priority for crawler operations. -
crawlerList
Synchronized list of active crawlers.
-
-
Constructor Details
-
WebFsIndexHelper
public WebFsIndexHelper()Default constructor.
-
-
Method Details
-
crawl
Initiates crawling for specified web and file configurations.- Parameters:
sessionId- The session ID for this crawling operationwebConfigIdList- List of web configuration IDs to crawl, null for allfileConfigIdList- List of file configuration IDs to crawl, null for all
-
doCrawl
protected void doCrawl(String sessionId, List<org.codelibs.fess.opensearch.config.exentity.WebConfig> webConfigList, List<org.codelibs.fess.opensearch.config.exentity.FileConfig> fileConfigList) Performs the actual crawling operation for the provided configurations.- Parameters:
sessionId- The session ID for this crawling operationwebConfigList- List of web configurations to crawlfileConfigList- List of file configurations to crawl
-
getAvailableBoostDocumentRuleList
protected List<org.codelibs.fess.opensearch.config.exentity.BoostDocumentRule> getAvailableBoostDocumentRuleList()Gets the list of available boost document rules.- Returns:
- List of boost document rules that are currently available
-
deleteCrawlData
Deletes crawl data for the specified session ID.- Parameters:
sid- The session ID whose crawl data should be deleted
-
setMaxAccessCount
public void setMaxAccessCount(long maxAccessCount) Sets the maximum number of URLs to access during crawling.- Parameters:
maxAccessCount- The maximum access count
-
setCrawlingExecutionInterval
public void setCrawlingExecutionInterval(long crawlingExecutionInterval) Sets the interval time between crawling executions.- Parameters:
crawlingExecutionInterval- The crawling execution interval in milliseconds
-
setIndexUpdaterPriority
public void setIndexUpdaterPriority(int indexUpdaterPriority) Sets the thread priority for index updater operations.- Parameters:
indexUpdaterPriority- The index updater thread priority
-
setCrawlerPriority
public void setCrawlerPriority(int crawlerPriority) Sets the thread priority for crawler operations.- Parameters:
crawlerPriority- The crawler thread priority
-