Interface SearchEngine


  • public interface SearchEngine
    interface for a Search Engine
    • Method Detail

      • getCollectionByName

        SearchCollection getCollectionByName​(java.lang.String name)
                                      throws SearchException
        returns a collection by name
        Parameters:
        name - name of the desired collection (case insensitive)
        Returns:
        returns lucene collection object matching name
        Throws:
        SearchException - if no matching Collection exist
      • getCollectionsAsQuery

        Query getCollectionsAsQuery()
                             throws SearchException
        Returns:
        returns all collections as a query object
        Throws:
        SearchException - if no matching Collection exist
      • createCollection

        SearchCollection createCollection​(java.lang.String name,
                                          Resource path,
                                          java.lang.String language,
                                          boolean allowOverwrite)
                                   throws SearchException
        Creates a new Collection and Store it (creating always a spellindex)
        Parameters:
        name - The Name of the Collection
        path - the path to store
        language - The language of the collection
        allowOverwrite - Allow Overwrite
        Returns:
        New SearchCollection
        Throws:
        SearchException - Search Exception
      • getDirectory

        Resource getDirectory()
        Returns:
        returns the directory of the search storage
      • getDisplayName

        java.lang.String getDisplayName()
        Returns:
        returns the Name of the search engine to display in admin
      • createSearchData

        SearchData createSearchData​(int suggestionMax)