|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectorg.opencms.search.CmsVfsIndexer
org.opencms.search.CmsDependencyIndexer
public class CmsDependencyIndexer
A VFS indexer that resolves locale dependent documents.
| Field Summary |
|---|
| Fields inherited from class org.opencms.search.CmsVfsIndexer |
|---|
m_cms, m_index, m_report |
| Constructor Summary | |
|---|---|
CmsDependencyIndexer()
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class org.opencms.search.CmsVfsIndexer |
|---|
addResourceToUpdateData, deleteResource, deleteResources, getCms, getIndex, getReport, isResourceInTimeWindow, updateResource, updateResource, updateResources |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CmsDependencyIndexer()
| Method Detail |
|---|
public CmsSearchIndexUpdateData getUpdateData(CmsSearchIndexSource source,
java.util.List<CmsPublishedResource> publishedResources)
I_CmsIndexer
getUpdateData in interface I_CmsIndexergetUpdateData in class CmsVfsIndexersource - the search index source to updatepublishedResources - a list of CmsPublishedResource objects that are to be updated
CmsVfsIndexer.getUpdateData(org.opencms.search.CmsSearchIndexSource, java.util.List)public boolean isLocaleDependenciesEnable()
CmsVfsIndexer
isLocaleDependenciesEnable in interface I_CmsIndexerisLocaleDependenciesEnable in class 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_CmsIndexer
newInstance in interface I_CmsIndexernewInstance in class 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 update
CmsVfsIndexer.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 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 update
CmsIndexException - 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
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||