Interface SearchManager


  • @Deprecated
    public interface SearchManager
    Deprecated.
    since 11.0, all search operations should be done with the Search entry point.
    The SearchManager is the entry point to create full text queries on top of an indexed cache.
    Author:
    Sanne Grinovero <sanne@hibernate.org> (C) 2011 Red Hat Inc., Marko Luksa
    • Method Detail

      • getQuery

        @Deprecated
        <E> CacheQuery<E> getQuery​(String queryString,
                                   IndexedQueryMode indexedQueryMode)
        Deprecated.
        since 11.0 with no replacement. To be removed in next major version.
        Builds a CacheQuery from an Ickle query string.
        Throws:
        org.hibernate.search.exception.SearchException - if the queryString cannot be converted to an indexed query, due to lack of indexes to resolve it fully or if contains aggregations and grouping.
      • getQuery

        <E> CacheQuery<E> getQuery​(String queryString)
        Deprecated.
        since 11.0, all search operations should be done with the Search entry point.
        Builds a CacheQuery from an Ickle query string, assuming the correct value for IndexedQueryMode to query all data in the cluster
        Parameters:
        queryString - the Ickle query
        Returns:
      • getMassIndexer

        @Deprecated
        MassIndexer getMassIndexer()
        Deprecated.
        Since 11.0, use Search.getIndexer(Cache) instead.
        The MassIndexer can be used to rebuild the Lucene indexes from the entries stored in Infinispan.
        Returns:
        the MassIndexer component
      • getStatistics

        @Deprecated
        org.hibernate.search.stat.Statistics getStatistics()
        Deprecated.
        Since 11.0, with no replacement.
        Get access to the Query specific statistics for this SearchManager instance
        Returns:
        The statistics.
        Since:
        7.0
      • getAnalyzer

        @Deprecated
        org.apache.lucene.analysis.Analyzer getAnalyzer​(String name)
        Deprecated.
        Since 11.0, with no replacement.
        Retrieve an analyzer instance by its definition name
        Parameters:
        name - the name of the analyzer
        Returns:
        analyzer with the specified name
        Throws:
        org.hibernate.search.exception.SearchException - if the definition name is unknown
        Since:
        7.0
      • getAnalyzer

        @Deprecated
        org.apache.lucene.analysis.Analyzer getAnalyzer​(Class<?> clazz)
        Deprecated.
        Since 11.0, with no replacement.
        Retrieves the scoped analyzer for a given class type.
        Parameters:
        clazz - The class for which to retrieve the analyzer.
        Returns:
        The scoped analyzer for the specified class.
        Throws:
        IllegalArgumentException - in case clazz == null or the specified class is not an indexed entity.
        Since:
        7.0
      • unwrap

        @Deprecated
        <T> T unwrap​(Class<T> cls)
        Deprecated.
        Since 11.0, with no replacement.
        This method gives access to internal Infinispan implementation details, and should not be normally needed. The interface of the internal types does not constitute a public API and can (and probably will) change without notice.
        Parameters:
        cls - the class of the desired internal component
        Returns:
        the 'unwrapped' internal component
        Throws:
        IllegalArgumentException - if the class of the requested internal component is not recognized