|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Interface for an indexer indexing Cms resources.
Method Summary | |
void |
deleteResources(org.apache.lucene.index.IndexReader reader,
java.util.List resourcesToDelete)
Incremental index update - delete the index entry for all resources in the given list. |
CmsSearchIndexUpdateData |
getUpdateData(CmsSearchIndexSource source,
java.util.List publishedResources)
Calculates the data for an incremental search index update. |
I_CmsIndexer |
newInstance(CmsObject cms,
I_CmsReport report,
CmsSearchIndex index)
Creates and initializes a new instance of this indexer implementation. |
void |
rebuildIndex(org.apache.lucene.index.IndexWriter writer,
CmsIndexingThreadManager threadManager,
CmsSearchIndexSource source)
Rebuilds the index for the given configured index source. |
void |
updateResources(org.apache.lucene.index.IndexWriter writer,
CmsIndexingThreadManager threadManager,
java.util.List resourcesToUpdate)
Incremental index update - create a new index entry for all resources in the given list. |
Method Detail |
public void deleteResources(org.apache.lucene.index.IndexReader reader, java.util.List resourcesToDelete) throws CmsIndexException
reader
- the index reader to delete the entries fromresourcesToDelete
- a list of CmsPublishedResource
instances that must be deleted
CmsIndexException
- if something goes wrongpublic CmsSearchIndexUpdateData getUpdateData(CmsSearchIndexSource source, java.util.List publishedResources) throws CmsIndexException
source
- the search index source to updatepublishedResources
- a list of CmsPublishedResource
objects that are to be updated
CmsIndexException
- if something goes wrongpublic I_CmsIndexer newInstance(CmsObject cms, I_CmsReport report, CmsSearchIndex index)
cms
- the OpenCms user context to use when reading resources from the VFS during indexingreport
- the report to write the indexing output toindex
- the search index to update
public void rebuildIndex(org.apache.lucene.index.IndexWriter writer, CmsIndexingThreadManager threadManager, CmsSearchIndexSource source) throws CmsIndexException
This is used when the index is fully rebuild, not for updating only some parts of an existing index.
writer
- the index writer to write the update tosource
- the search index source to updatethreadManager
- the thread manager to use when extracting the document text
CmsIndexException
- if something goes wrongpublic void updateResources(org.apache.lucene.index.IndexWriter writer, CmsIndexingThreadManager threadManager, java.util.List resourcesToUpdate) throws CmsIndexException
writer
- the index writer to write the update toresourcesToUpdate
- a list of CmsPublishedResource
instances that must be updatedthreadManager
- the thread manager to use when extracting the document text
CmsIndexException
- if something goes wrong
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |