1 5 package org.exoplatform.services.indexing; 6 7 import java.util.* ; 8 import org.apache.lucene.document.Document; 9 import org.apache.lucene.analysis.Analyzer; 10 import org.apache.lucene.index.Term; 11 18 public interface IndexingService { 19 final static public String PREFIX = "document-" ; 20 final static public String IDENTIFIER_FIELD = PREFIX + "identifier" ; 21 final static public String AUTHOR_FIELD = PREFIX + "author" ; 22 final static public String MODULE_FIELD = PREFIX + "module" ; 23 final static public String TITLE_FIELD = PREFIX + "title" ; 24 final static public String DESCRIPTION_FIELD = PREFIX + "description" ; 25 final static public String DOCUMENT_FIELD = PREFIX + "body" ; 26 final static public String DOCUMENT_ACCESS_ROLE = PREFIX + "accessRole" ; 27 28 public Analyzer getAnalyzer() ; 29 30 public String getIndexDatabaseLocation() ; 31 32 public void addIndexerPlugin(IndexerPlugin plugin) ; 33 public Collection getIndexerPlugins() throws Exception ; 34 public IndexerPlugin getIndexerPlugin(String identifer) throws Exception ; 35 36 public void queueUpdateDocument(Document document) throws Exception ; 37 public void queueUpdateDocuments(List documents) throws Exception ; 38 39 public void queueIndexDocument(Document document) throws Exception ; 40 public void queueIndexDocuments(List documents) throws Exception ; 41 42 public void queueDeleteDocuments(Term queryTerm) throws Exception ; 43 44 public Searcher getSearcher() throws Exception ; 45 46 public void optimizeDatabase() throws Exception ; 47 } | Popular Tags |