public interface SearchManager
| Modifier and Type | Method and Description |
|---|---|
org.hibernate.search.query.dsl.EntityContext |
buildQueryBuilderForClass(Class<?> entityType)
Experimental.
|
Analyzer |
getAnalyzer(Class<?> clazz)
Retrieves the scoped analyzer for a given class type.
|
Analyzer |
getAnalyzer(String name)
Retrieve an analyzer instance by its definition name
|
CacheQuery |
getClusteredQuery(Query luceneQuery,
Class<?>... classes)
Experimental!
Use it to try out the newly introduced distributed queries.
|
MassIndexer |
getMassIndexer()
The MassIndexer can be used to rebuild the Lucene indexes from
the entries stored in Infinispan.
|
CacheQuery |
getQuery(Query luceneQuery,
Class<?>... classes)
This is a simple method that will just return a
CacheQuery, filtered according to a set of classes passed
in. |
org.hibernate.search.stat.Statistics |
getStatistics()
Get access to the Query specific statistics for this SearchManager instance
|
void |
purge(Class<?> entityType)
Remove all entities of particular class from the index.
|
<T> T |
unwrap(Class<T> cls)
This method gives access to internal Infinispan types, and should not be normally needed.
|
CacheQuery getQuery(Query luceneQuery, Class<?>... classes)
CacheQuery, filtered according to a set of classes passed
in. If no classes are passed in, it is assumed that no type filtering is performed and so all known types will
be searched.luceneQuery - - Queryclasses - - optionally only return results of type that matches this list of acceptable typesorg.hibernate.search.query.dsl.EntityContext buildQueryBuilderForClass(Class<?> entityType)
CacheQuery getClusteredQuery(Query luceneQuery, Class<?>... classes)
luceneQuery - classes - MassIndexer getMassIndexer()
Analyzer getAnalyzer(String name)
name - the name of the analyzerorg.hibernate.search.exception.SearchException - if the definition name is unknownorg.hibernate.search.stat.Statistics getStatistics()
Analyzer getAnalyzer(Class<?> clazz)
clazz - The class for which to retrieve the analyzer.IllegalArgumentException - in case clazz == null or the specified
class is not an indexed entity.void purge(Class<?> entityType)
entityType - The class of the entity to remove.<T> T unwrap(Class<T> cls)
Copyright © 2020 JBoss, a division of Red Hat. All rights reserved.