public interface FullTextSession extends Session, FullTextEntityManager
Session with fulltext search and indexing capabilities.Session.LockRequest| Modifier and Type | Method and Description |
|---|---|
FullTextQuery |
createFullTextQuery(org.apache.lucene.search.Query luceneQuery,
Class<?>... entities)
Create a fulltext query on top of a native Lucene query returning the matching objects
of type
entities and their respective subclasses. |
FullTextQuery |
createFullTextQuery(org.hibernate.search.query.engine.spi.QueryDescriptor descriptor,
Class<?>... entities)
Creates a fulltext query from the given query descriptor.
|
FullTextSharedSessionBuilder |
sessionWithOptions()
Obtain a
Session builder with the ability to grab certain information from this session. |
addEventListeners, buildLockRequest, byId, byId, byMultipleIds, byMultipleIds, byNaturalId, byNaturalId, bySimpleNaturalId, bySimpleNaturalId, cancelQuery, clear, contains, createFilter, createNamedQuery, createQuery, createQuery, createQuery, createQuery, createQuery, createSQLQuery, delete, delete, disableFetchProfile, disableFilter, disconnect, doReturningWork, doWork, enableFetchProfile, enableFilter, evict, flush, get, get, get, get, get, get, getCacheMode, getCurrentLockMode, getEnabledFilter, getEntityName, getFlushMode, getHibernateFlushMode, getIdentifier, getLobHelper, getNamedQuery, getSessionFactory, getStatistics, getTypeHelper, isDefaultReadOnly, isDirty, isFetchProfileEnabled, isReadOnly, load, load, load, load, load, load, load, lock, lock, merge, merge, persist, persist, reconnect, refresh, refresh, refresh, refresh, refresh, replicate, replicate, save, save, saveOrUpdate, saveOrUpdate, setCacheMode, setDefaultReadOnly, setFlushMode, setHibernateFlushMode, setReadOnly, update, updatebeginTransaction, close, createCriteria, createCriteria, createCriteria, createCriteria, createStoredProcedureCall, createStoredProcedureCall, createStoredProcedureCall, getJdbcBatchSize, getNamedProcedureCall, getTenantIdentifier, getTransaction, isConnected, isOpen, setJdbcBatchSizegetSessionclose, contains, createEntityGraph, createEntityGraph, createNamedQuery, createNamedStoredProcedureQuery, createNativeQuery, createNativeQuery, createNativeQuery, createStoredProcedureQuery, createStoredProcedureQuery, createStoredProcedureQuery, detach, find, find, find, find, getCriteriaBuilder, getDelegate, getEntityGraph, getEntityGraphs, getEntityManagerFactory, getLockMode, getMetamodel, getProperties, getReference, getTransaction, isJoinedToTransaction, isOpen, joinTransaction, lock, lock, refresh, refresh, refresh, remove, setFlushMode, setProperty, unwrapcreateNamedQuery, createNativeQuery, createNativeQuery, createNativeQuery, getNamedNativeQuery, getNamedSQLQuerycreateIndexer, flushToIndexes, getSearchFactory, index, purge, purgeAllFullTextQuery createFullTextQuery(org.apache.lucene.search.Query luceneQuery, Class<?>... entities)
FullTextEntityManagerentities and their respective subclasses.createFullTextQuery in interface FullTextEntityManagerluceneQuery - The native Lucene query to be rn against the Lucene index.entities - List of classes for type filtering. The query result will only return entities of
the specified types and their respective subtype. If no class is specified no type filtering will take place.FullTextQuery wrapping around the native Lucene wuery.FullTextQuery createFullTextQuery(org.hibernate.search.query.engine.spi.QueryDescriptor descriptor, Class<?>... entities)
FullTextEntityManagercreateFullTextQuery in interface FullTextEntityManagerdescriptor - The query descriptorentities - List of classes for type filtering. The query result will only return entities of
the specified types and their respective subtype. If no class is specified no type filtering will take place.FullTextQuery using the given query descriptor.FullTextSharedSessionBuilder sessionWithOptions()
SessionSession builder with the ability to grab certain information from this session.sessionWithOptions in interface SessionCopyright © 2019 JBoss by Red Hat. All rights reserved.