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, updateResources
public CmsSearchIndexUpdateData getUpdateData(CmsSearchIndexSource source, java.util.List<CmsPublishedResource> publishedResources)
I_CmsIndexer
getUpdateData
在接口中 I_CmsIndexer
getUpdateData
在类中 CmsVfsIndexer
source
- 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()
CmsVfsIndexer
isLocaleDependenciesEnable
在接口中 I_CmsIndexer
isLocaleDependenciesEnable
在类中 CmsVfsIndexer
true
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_CmsIndexer
newInstance
在接口中 I_CmsIndexer
newInstance
在类中 CmsVfsIndexer
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 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_CmsIndexer
This is used when the index is fully rebuild, not for updating only some parts of an existing index.
rebuildIndex
在接口中 I_CmsIndexer
rebuildIndex
在类中 CmsVfsIndexer
writer
- 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