| org.opencms.search.I_CmsIndexer
All known Subclasses: org.opencms.search.CmsVfsIndexer,
I_CmsIndexer | public interface I_CmsIndexer (Code) | | Interface for an indexer indexing Cms resources.
author: Carsten Weinholz author: Thomas Weckert version: $Revision: 1.18 $ since: 6.0.0 |
deleteResources | void deleteResources(IndexReader reader, List resourcesToDelete) throws CmsIndexException(Code) | | Incremental index update - delete the index entry for all resources in the given list.
Parameters: reader - the index reader to delete the entries from Parameters: resourcesToDelete - a list of org.opencms.db.CmsPublishedResource instances that must be deleted throws: CmsIndexException - if something goes wrong |
newInstance | I_CmsIndexer newInstance(CmsObject cms, I_CmsReport report, CmsSearchIndex index)(Code) | | Creates and initializes a new instance of this indexer implementation.
Parameters: cms - the OpenCms user context to use when reading resources from the VFS during indexing Parameters: report - the report to write the indexing output to Parameters: index - the search index to update a new instance of this indexer implementation |
rebuildIndex | void rebuildIndex(IndexWriter writer, CmsIndexingThreadManager threadManager, CmsSearchIndexSource source) throws CmsIndexException(Code) | | Rebuilds the index for the given configured index source.
This is used when the index is fully rebuild, not for updating only some parts
of an existing index.
Parameters: writer - the index writer to write the update to Parameters: source - the search index source to update Parameters: threadManager - the thread manager to use when extracting the document text throws: CmsIndexException - if something goes wrong |
updateResources | void updateResources(IndexWriter writer, CmsIndexingThreadManager threadManager, List resourcesToUpdate) throws CmsIndexException(Code) | | Incremental index update - create a new index entry for all resources in the given list.
Parameters: writer - the index writer to write the update to Parameters: resourcesToUpdate - a list of org.opencms.db.CmsPublishedResource instances that must be updated Parameters: threadManager - the thread manager to use when extracting the document text throws: CmsIndexException - if something goes wrong |
|
|