|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.opencms.search.CmsVfsIndexer
Implementation for an indexer indexing VFS Cms resources.
| Constructor Summary | |
CmsVfsIndexer()
|
|
| Method Summary | |
A_CmsIndexResource |
getIndexResource(CmsObject cms,
Document doc)
Returns an index resource for a specified Lucene search result document. |
void |
init(I_CmsReport report,
CmsSearchIndex index,
CmsSearchIndexSource indexSource,
IndexWriter writer,
CmsIndexingThreadManager threadManager)
Initializes the indexer. |
void |
updateIndex(CmsObject cms,
String source,
String path)
Creates new index entries for all resources below the given path. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public CmsVfsIndexer()
| Method Detail |
public A_CmsIndexResource getIndexResource(CmsObject cms,
Document doc)
throws CmsException
I_CmsIndexerImplementations of this method have to check if the current user has read permissions on the Cms resource represented by the Lucene document.
If this check fails, the implementation must return null as a result.
getIndexResource in interface I_CmsIndexercms - the current user's CmsObjectdoc - the Lucene search result document
CmsException - if something goes wrongI_CmsIndexer.getIndexResource(org.opencms.file.CmsObject, org.apache.lucene.document.Document)
public void init(I_CmsReport report,
CmsSearchIndex index,
CmsSearchIndexSource indexSource,
IndexWriter writer,
CmsIndexingThreadManager threadManager)
I_CmsIndexer
init in interface I_CmsIndexerreport - the reportindex - the search indexindexSource - the search index sourcewriter - writer to write the search index in the physical file systemthreadManager - the tread managerI_CmsIndexer.init(org.opencms.report.I_CmsReport, org.opencms.search.CmsSearchIndex, org.opencms.search.CmsSearchIndexSource, org.apache.lucene.index.IndexWriter, org.opencms.search.CmsIndexingThreadManager)
public void updateIndex(CmsObject cms,
String source,
String path)
throws CmsIndexException
I_CmsIndexer
updateIndex in interface I_CmsIndexercms - the current user's CmsObjectsource - the source of the resourcespath - the path to the root of the subtree to index
CmsIndexException - if something goes wrongI_CmsIndexer.updateIndex(CmsObject, java.lang.String, java.lang.String)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||