Package com.jalios.jcms.archive
Interface ArchiveEngine
-
- All Known Implementing Classes:
LuceneArchiveEngine
public interface ArchiveEngine
This interface must be implemented by archive engines (indexer and searcher) such as LuceneArchiveEngine.- Since:
- jcms-4.1.1
- Author:
- Olivier Jaquemet
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
deleteArchiveIndex(ArchivedPublication pub)
Delete every information associated with the publicationvoid
indexPublication(Publication pub, ArchivedPublication archive)
Index a Publicationvoid
init()
Init the engine responsible of indexing and searching archivejava.util.Set<java.lang.Long>
search(java.lang.String text, java.lang.String mode)
Perform a full-text search on archives
-
-
-
Method Detail
-
init
void init() throws java.lang.Exception
Init the engine responsible of indexing and searching archive- Throws:
java.lang.Exception
-
indexPublication
void indexPublication(Publication pub, ArchivedPublication archive) throws java.lang.Exception
Index a Publication- Parameters:
pub
- the Publication to indexarchive
- the newly created ArchivedPublication corresponding- Throws:
java.lang.Exception
-
search
java.util.Set<java.lang.Long> search(java.lang.String text, java.lang.String mode)
Perform a full-text search on archives- Parameters:
text
- the text to searchmode
- the search mode- Returns:
- a Set of Long (the rowid of the matching
ArchivedPublication
) - Since:
- jcms-6.0
-
deleteArchiveIndex
void deleteArchiveIndex(ArchivedPublication pub)
Delete every information associated with the publication- Parameters:
pub
- the ArchivedPublication being deleted
-
-