Class InfinispanSearchSession
java.lang.Object
org.hibernate.search.mapper.pojo.session.spi.AbstractPojoSearchSession
org.infinispan.search.mapper.session.impl.InfinispanSearchSession
- All Implemented Interfaces:
AutoCloseable,BackendSessionContext,PojoImplicitReindexingResolverSessionContext,BridgeSessionContext,PojoIndexingProcessorSessionContext,PojoScopeSessionContext,PojoWorkSessionContext,SearchSession
- Author:
- Fabio Massimo Ercoli
-
Constructor Summary
ConstructorsConstructorDescriptionInfinispanSearchSession(InfinispanSearchSessionMappingContext mappingContext, EntityLoaderFactory<?> entityLoader) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()<T> SearchScope<T>scope(Class<T> expectedSuperType, Collection<String> entityNames) Create aSearchScopelimited to entity types referenced by their name.<E> SearchScopeImpl<E>scope(Collection<? extends Class<? extends E>> types) Create aSearchScopelimited to the given types.<E> SearchQuerySelectStep<?,EntityReference, E, ?, ?, ?> search(SearchScope<E> scope) Initiate the building of a search query.Methods inherited from class org.hibernate.search.mapper.pojo.session.spi.AbstractPojoSearchSession
identifierBridgeFromDocumentIdentifierContext, mappingContext, propertyBridgeWriteContext, routingBridgeRouteContext, typeBridgeWriteContext, valueBridgeFromIndexedValueContextMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.hibernate.search.mapper.pojo.bridge.runtime.spi.BridgeSessionContext
tenantIdentifierValueMethods inherited from interface org.infinispan.search.mapper.session.SearchSession
scope, scope
-
Constructor Details
-
InfinispanSearchSession
public InfinispanSearchSession(InfinispanSearchSessionMappingContext mappingContext, EntityLoaderFactory<?> entityLoader)
-
-
Method Details
-
close
public void close()- Specified by:
closein interfaceAutoCloseable
-
search
Description copied from interface:SearchSessionInitiate the building of a search query.The query will target the indexes in the given scope.
- Specified by:
searchin interfaceSearchSession- 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
Description copied from interface:SearchSessionCreate aSearchScopelimited to the given types.- Specified by:
scopein interfaceSearchSession- 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
Description copied from interface:SearchSessionCreate aSearchScopelimited to entity types referenced by their name.- Specified by:
scopein interfaceSearchSession- 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
- Specified by:
createIndexerin interfaceSearchSession- Overrides:
createIndexerin classAbstractPojoSearchSession
-
tenantIdentifier
- Specified by:
tenantIdentifierin interfaceBackendSessionContext- Specified by:
tenantIdentifierin interfaceBridgeSessionContext
-
runtimeIntrospector
- Specified by:
runtimeIntrospectorin interfacePojoImplicitReindexingResolverSessionContext- Specified by:
runtimeIntrospectorin interfacePojoIndexingProcessorSessionContext
-
defaultLoadingContext
- Specified by:
defaultLoadingContextin interfacePojoWorkSessionContext
-
configuredIndexingPlanFilter
- Specified by:
configuredIndexingPlanFilterin interfacePojoWorkSessionContext
-