1 31 32 package org.opencms.search; 33 34 import org.opencms.file.CmsObject; 35 import org.opencms.main.CmsException; 36 import org.opencms.report.I_CmsReport; 37 38 import java.util.List ; 39 40 import org.apache.lucene.document.Document; 41 import org.apache.lucene.index.IndexReader; 42 import org.apache.lucene.index.IndexWriter; 43 44 54 public interface I_CmsIndexer { 55 56 64 void deleteResources(IndexReader reader, List resourcesToDelete) throws CmsIndexException; 65 66 82 A_CmsIndexResource getIndexResource(CmsObject cms, Document doc) throws CmsException; 83 84 94 CmsSearchIndexUpdateData getUpdateData(CmsSearchIndexSource source, List publishedResources) 95 throws CmsIndexException; 96 97 106 I_CmsIndexer newInstance(CmsObject cms, I_CmsReport report, CmsSearchIndex index); 107 108 120 void rebuildIndex(IndexWriter writer, CmsIndexingThreadManager threadManager, CmsSearchIndexSource source) 121 throws CmsIndexException; 122 123 132 void updateResources(IndexWriter writer, CmsIndexingThreadManager threadManager, List resourcesToUpdate) 133 throws CmsIndexException; 134 } | Popular Tags |