public class CmsDependencyIndexer extends CmsVfsIndexer
m_cms, m_index, m_report| 构造器和说明 |
|---|
CmsDependencyIndexer() |
| 限定符和类型 | 方法和说明 |
|---|---|
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.
|
I_CmsIndexer |
newInstance(CmsObject cms,
I_CmsReport report,
CmsSearchIndex index)
Creates and initializes a new instance of this indexer implementation.
|
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, updateResource, updateResource, updateResourcespublic CmsSearchIndexUpdateData getUpdateData(CmsSearchIndexSource source, java.util.List<CmsPublishedResource> publishedResources)
I_CmsIndexergetUpdateData 在接口中 I_CmsIndexergetUpdateData 在类中 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 在接口中 I_CmsIndexerisLocaleDependenciesEnable 在类中 CmsVfsIndexertrue if this VFS indexer is able to resolve locale dependencies between documentsCmsVfsIndexer.isLocaleDependenciesEnable()public I_CmsIndexer newInstance(CmsObject cms, I_CmsReport report, CmsSearchIndex index)
I_CmsIndexernewInstance 在接口中 I_CmsIndexernewInstance 在类中 CmsVfsIndexercms - 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 updateCmsVfsIndexer.newInstance(org.opencms.file.CmsObject, org.opencms.report.I_CmsReport, org.opencms.search.CmsSearchIndex)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 在接口中 I_CmsIndexerrebuildIndex 在类中 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