public class CmsDependencyIndexer extends CmsVfsIndexer
m_cms, m_index, m_report| Constructor and Description |
|---|
CmsDependencyIndexer() |
| Modifier and Type | Method and Description |
|---|---|
protected java.util.Map<java.lang.String,java.util.List<CmsResource>> |
createFolderLookupMap(java.util.List<CmsResource> resources)
Creates a folder based lookup map for the given resource list.
|
CmsSearchIndexUpdateData |
getUpdateData(CmsSearchIndexSource source,
java.util.List<CmsPublishedResource> publishedResources)
Calculates the data for an incremental search index update.
|
boolean |
isLocaleDependenciesEnable()
The default indexer is not able to resolve locale dependencies between documents.
|
void |
rebuildIndex(I_CmsIndexWriter writer,
CmsIndexingThreadManager threadManager,
CmsSearchIndexSource source)
Rebuilds the index for the given configured index source.
|
addResourceToUpdateData, deleteResource, deleteResources, getCms, getIndex, getReport, isResourceInTimeWindow, newInstance, updateResource, updateResource, updateResourcespublic CmsDependencyIndexer()
public CmsSearchIndexUpdateData getUpdateData(CmsSearchIndexSource source, java.util.List<CmsPublishedResource> publishedResources)
I_CmsIndexergetUpdateData in interface I_CmsIndexergetUpdateData in class CmsVfsIndexersource - the search index source to updatepublishedResources - a list of CmsPublishedResource objects that are to be updatedCmsVfsIndexer.getUpdateData(org.opencms.search.CmsSearchIndexSource, java.util.List)public boolean isLocaleDependenciesEnable()
CmsVfsIndexerisLocaleDependenciesEnable in interface I_CmsIndexerisLocaleDependenciesEnable in class CmsVfsIndexertrue if this VFS indexer is able to resolve locale dependencies between documentsCmsVfsIndexer.isLocaleDependenciesEnable()public void rebuildIndex(I_CmsIndexWriter writer, CmsIndexingThreadManager threadManager, CmsSearchIndexSource source) throws CmsIndexException
I_CmsIndexerThis is used when the index is fully rebuild, not for updating only some parts of an existing index.
rebuildIndex in interface I_CmsIndexerrebuildIndex in class CmsVfsIndexerwriter - the index writer to write the update tothreadManager - the thread manager to use when extracting the document textsource - the search index source to updateCmsIndexException - if something goes wrongI_CmsIndexer.rebuildIndex(org.opencms.search.I_CmsIndexWriter, org.opencms.search.CmsIndexingThreadManager, org.opencms.search.CmsSearchIndexSource)protected java.util.Map<java.lang.String,java.util.List<CmsResource>> createFolderLookupMap(java.util.List<CmsResource> resources)
resources - the list of resource to build the lookup map for