Package org.opencms.search
Class CmsDependencyIndexer
java.lang.Object
org.opencms.search.CmsVfsIndexer
org.opencms.search.CmsDependencyIndexer
- All Implemented Interfaces:
I_CmsIndexer
A VFS indexer that resolves locale dependent documents.
- Since:
- 8.5.0
-
Field Summary
Fields inherited from class org.opencms.search.CmsVfsIndexer
m_cms, m_index, m_report -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Map<String, List<CmsResource>> createFolderLookupMap(List<CmsResource> resources) Creates a folder based lookup map for the given resource list.getUpdateData(CmsSearchIndexSource source, List<CmsPublishedResource> publishedResources) Calculates the data for an incremental search index update.booleanThe default indexer is not able to resolve locale dependencies between documents.voidrebuildIndex(I_CmsIndexWriter writer, CmsIndexingThreadManager threadManager, CmsSearchIndexSource source) Rebuilds the index for the given configured index source.Methods inherited from class org.opencms.search.CmsVfsIndexer
addResourceToUpdateData, deleteResource, deleteResources, getCms, getIndex, getReport, isResourceInTimeWindow, newInstance, updateResource, updateResource, updateResources
-
Constructor Details
-
CmsDependencyIndexer
public CmsDependencyIndexer()
-
-
Method Details
-
getUpdateData
public CmsSearchIndexUpdateData getUpdateData(CmsSearchIndexSource source, List<CmsPublishedResource> publishedResources) Description copied from interface:I_CmsIndexerCalculates the data for an incremental search index update.- Specified by:
getUpdateDatain interfaceI_CmsIndexer- Overrides:
getUpdateDatain classCmsVfsIndexer- Parameters:
source- the search index source to updatepublishedResources- a list ofobjects that are to be updatedCmsPublishedResource- Returns:
- a container with the information about the resources to delete and / or update
- See Also:
-
isLocaleDependenciesEnable
Description copied from class:CmsVfsIndexerThe default indexer is not able to resolve locale dependencies between documents.- Specified by:
isLocaleDependenciesEnablein interfaceI_CmsIndexer- Overrides:
isLocaleDependenciesEnablein classCmsVfsIndexer- Returns:
trueif this VFS indexer is able to resolve locale dependencies between documents- See Also:
-
rebuildIndex
public void rebuildIndex(I_CmsIndexWriter writer, CmsIndexingThreadManager threadManager, CmsSearchIndexSource source) Description copied from interface:I_CmsIndexerRebuilds 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.
- Specified by:
rebuildIndexin interfaceI_CmsIndexer- Overrides:
rebuildIndexin classCmsVfsIndexer- Parameters:
writer- the index writer to write the update tothreadManager- the thread manager to use when extracting the document textsource- the search index source to update- See Also:
-
createFolderLookupMap
Creates a folder based lookup map for the given resource list.- Parameters:
resources- the list of resource to build the lookup map for- Returns:
- a folder based lookup map for the given resource list
-