Package org.infinispan.query
Interface SearchManager
-
@Deprecated public interface SearchManager
Deprecated.since 11.0, all search operations should be done with theSearch
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 Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description org.apache.lucene.analysis.Analyzer
getAnalyzer(Class<?> clazz)
Deprecated.Since 11.0, with no replacement.org.apache.lucene.analysis.Analyzer
getAnalyzer(String name)
Deprecated.Since 11.0, with no replacement.MassIndexer
getMassIndexer()
Deprecated.Since 11.0, useSearch.getIndexer(Cache)
instead.<E> CacheQuery<E>
getQuery(String queryString)
Deprecated.since 11.0, all search operations should be done with theSearch
entry point.<E> CacheQuery<E>
getQuery(String queryString, IndexedQueryMode indexedQueryMode)
Deprecated.since 11.0 with no replacement.org.hibernate.search.stat.Statistics
getStatistics()
Deprecated.Since 11.0, with no replacement.void
purge(Class<?> entityType)
Deprecated.Since 11.0, useIndexer.remove()
obtained fromSearch.getIndexer(Cache)
.<T> T
unwrap(Class<T> cls)
Deprecated.Since 11.0, with no replacement.
-
-
-
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 aCacheQuery
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 theSearch
entry point.Builds aCacheQuery
from an Ickle query string, assuming the correct value forIndexedQueryMode
to query all data in the cluster- Parameters:
queryString
- the Ickle query- Returns:
-
getMassIndexer
@Deprecated MassIndexer getMassIndexer()
Deprecated.Since 11.0, useSearch.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 caseclazz == null
or the specified class is not an indexed entity.- Since:
- 7.0
-
purge
@Deprecated void purge(Class<?> entityType)
Deprecated.Since 11.0, useIndexer.remove()
obtained fromSearch.getIndexer(Cache)
.Remove all entities of particular class from the index.- Parameters:
entityType
- The class of the entity to remove.
-
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
-
-