1 5 package org.exoplatform.services.indexing; 6 7 12 public interface IndexerPlugin { 13 final static public String [] MANDATORY_FIELDS = 14 {IndexingService.IDENTIFIER_FIELD, IndexingService.MODULE_FIELD, 15 IndexingService.TITLE_FIELD, IndexingService.DOCUMENT_FIELD}; 16 17 final static public String UNSYNCHRONIZED_DATABASE = 18 "You usually have this message when your database and lucence indexed database are not " + 19 "synchrnonized. The problem is occured when you use a new database or other db tool to delete " + 20 "a record from database while you still using the old lucence indexed database. To solve " + 21 "the problem , you should login as the admin and reindex the one all the services"; 22 23 public String getPluginIdentifier() ; 24 25 public String [] getMandatoryIndexFields() ; 26 public String [] getCustomizedIndexFields() ; 27 28 public Searcher getSearcher() throws Exception ; 29 30 public void resetSearcher() ; 31 32 public Object getObject(String user, String objectId) throws Exception ; 33 public String getObjectAsText(String user, String objectId) throws Exception ; 34 public String getObjectAsXHTML(String user, String objectId) throws Exception ; 35 public String getObjectAsXML(String user, String objectId) throws Exception ; 36 37 38 public void removeIndex() throws Exception ; 39 40 public void reindex() throws Exception ; 41 } | Popular Tags |