Interface SearchSession
- All Superinterfaces:
AutoCloseable
- All Known Implementing Classes:
InfinispanSearchSession
- Author:
- Fabio Massimo Ercoli
-
Method Summary
Modifier and TypeMethodDescriptionorg.hibernate.search.mapper.pojo.work.spi.PojoIndexer
default <E> SearchScope
<E> Create aSearchScope
limited to the given type.default <T> SearchScope
<T> Create aSearchScope
limited to entity types referenced by their name.<T> SearchScope
<T> scope
(Class<T> expectedSuperType, Collection<String> entityNames) Create aSearchScope
limited to entity types referenced by their name.<E> SearchScope
<E> scope
(Collection<? extends Class<? extends E>> types) Create aSearchScope
limited to the given types.<E> org.hibernate.search.engine.search.query.dsl.SearchQuerySelectStep
<?, EntityReference, E, ?, ?, ?> search
(SearchScope<E> scope) Initiate the building of a search query.Methods inherited from interface java.lang.AutoCloseable
close
-
Method Details
-
search
<E> org.hibernate.search.engine.search.query.dsl.SearchQuerySelectStep<?,EntityReference, searchE, ?, ?, ?> (SearchScope<E> scope) Initiate the building of a search query.The query will target the indexes in the given scope.
- Type Parameters:
E
- An entity type to include in the scope.- Parameters:
scope
- A scope representing all indexed types that will be targeted by the search query.- Returns:
- The initial step of a DSL where the search query can be defined.
- See Also:
-
scope
Create aSearchScope
limited to the given type.- Type Parameters:
E
- An entity type to include in the scope.- Parameters:
type
- A type to include in the scope.- Returns:
- The created scope.
- See Also:
-
scope
Create aSearchScope
limited to the given types.- Type Parameters:
E
- A supertype of all indexed entity types that will be targeted by the search query.- Parameters:
types
- A collection of types to include in the scope.- Returns:
- The created scope.
- See Also:
-
scope
Create aSearchScope
limited to entity types referenced by their name.- Type Parameters:
T
- A supertype of all entity types to include in the scope.- Parameters:
expectedSuperType
- A supertype of all entity types to include in the scope.entityName
- An entity name.- Returns:
- The created scope.
- See Also:
-
scope
Create aSearchScope
limited to entity types referenced by their name.- Type Parameters:
T
- A supertype of all entity types to include in the scope.- Parameters:
expectedSuperType
- A supertype of all entity types to include in the scope.entityNames
- A collection of entity names.- Returns:
- The created scope.
- See Also:
-
createIndexer
org.hibernate.search.mapper.pojo.work.spi.PojoIndexer createIndexer()
-