Interface ArchiveEngine

All Known Implementing Classes:
LuceneArchiveEngine

@Deprecated(since="11.0 / JCMS-8887", forRemoval=true) public interface ArchiveEngine
Deprecated, for removal: This API element is subject to removal in a future version.
This interface must be implemented by archive engines (indexer and searcher) such as LuceneArchiveEngine.
Since:
jcms-4.1.1
Author:
Olivier Jaquemet
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Deprecated, for removal: This API element is subject to removal in a future version.
    Delete every information associated with the publication
    void
    Deprecated, for removal: This API element is subject to removal in a future version.
    Index a Publication
    void
    Deprecated, for removal: This API element is subject to removal in a future version.
    Init the engine responsible of indexing and searching archive
    search(String text, String mode)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Perform a full-text search on archives
  • Method Details

    • init

      void init() throws Exception
      Deprecated, for removal: This API element is subject to removal in a future version.
      Init the engine responsible of indexing and searching archive
      Throws:
      Exception
    • indexPublication

      void indexPublication(Publication pub, ArchivedPublication archive) throws Exception
      Deprecated, for removal: This API element is subject to removal in a future version.
      Index a Publication
      Parameters:
      pub - the Publication to index
      archive - the newly created ArchivedPublication corresponding
      Throws:
      Exception
    • search

      Set<Long> search(String text, String mode)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Perform a full-text search on archives
      Parameters:
      text - the text to search
      mode - the search mode
      Returns:
      a Set of Long (the rowid of the matching ArchivedPublication)
      Since:
      jcms-6.0
    • deleteArchiveIndex

      void deleteArchiveIndex(ArchivedPublication pub)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Delete every information associated with the publication
      Parameters:
      pub - the ArchivedPublication being deleted