Package org.hibernate.search
Interface FullTextSession
-
- All Superinterfaces:
AutoCloseable,Closeable,javax.persistence.EntityManager,FullTextEntityManager,HibernateEntityManager,QueryProducer,Serializable,Session,SharedSessionContract
@Deprecated public interface FullTextSession extends Session, FullTextEntityManager
Deprecated.Instead of using Hibernate Search 5 APIs, get aSearchSessionusingSearch.session(Session). Refer to the migration guide for more information.Extends the HibernateSessionwith fulltext search and indexing capabilities.- Author:
- Emmanuel Bernard
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.hibernate.Session
Session.LockRequest
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description FullTextQuerycreateFullTextQuery(Query luceneQuery, Class<?>... entities)Deprecated.Create a fulltext query on top of a native Lucene query returning the matching objects of typeentitiesand their respective subclasses.FullTextSharedSessionBuildersessionWithOptions()Deprecated.-
Methods inherited from interface javax.persistence.EntityManager
close, contains, createNamedQuery, createNamedQuery, createNamedStoredProcedureQuery, createNativeQuery, createNativeQuery, createNativeQuery, createQuery, createQuery, createQuery, createQuery, createQuery, createStoredProcedureQuery, createStoredProcedureQuery, createStoredProcedureQuery, detach, find, find, find, find, getCriteriaBuilder, getDelegate, getEntityManagerFactory, getLockMode, getMetamodel, getProperties, getReference, getTransaction, isJoinedToTransaction, isOpen, joinTransaction, lock, lock, refresh, refresh, refresh, remove, setFlushMode, setProperty, unwrap
-
Methods inherited from interface org.hibernate.search.jpa.FullTextEntityManager
createIndexer, flushToIndexes, getSearchFactory, index, purge, purgeAll
-
Methods inherited from interface org.hibernate.jpa.HibernateEntityManager
getSession
-
Methods inherited from interface org.hibernate.query.QueryProducer
createNamedQuery, createNativeQuery, createNativeQuery, createNativeQuery, getNamedNativeQuery, getNamedSQLQuery
-
Methods inherited from interface org.hibernate.Session
addEventListeners, buildLockRequest, byId, byId, byMultipleIds, byMultipleIds, byNaturalId, byNaturalId, bySimpleNaturalId, bySimpleNaturalId, cancelQuery, clear, contains, createEntityGraph, createEntityGraph, createFilter, createNamedQuery, createQuery, createQuery, createQuery, createQuery, createSQLQuery, delete, delete, disableFetchProfile, disableFilter, disconnect, enableFetchProfile, enableFilter, evict, flush, get, get, get, get, get, get, getCacheMode, getCurrentLockMode, getEnabledFilter, getEntityGraph, getEntityGraphs, getEntityName, getFlushMode, getHibernateFlushMode, getIdentifier, getLobHelper, 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, update
-
Methods inherited from interface org.hibernate.SharedSessionContract
beginTransaction, close, createCriteria, createCriteria, createCriteria, createCriteria, createQuery, createStoredProcedureCall, createStoredProcedureCall, createStoredProcedureCall, doReturningWork, doWork, getJdbcBatchSize, getNamedProcedureCall, getNamedQuery, getTenantIdentifier, getTransaction, isConnected, isOpen, setJdbcBatchSize
-
-
-
-
Method Detail
-
createFullTextQuery
FullTextQuery createFullTextQuery(Query luceneQuery, Class<?>... entities)
Deprecated.Description copied from interface:FullTextEntityManagerCreate a fulltext query on top of a native Lucene query returning the matching objects of typeentitiesand their respective subclasses.- Specified by:
createFullTextQueryin interfaceFullTextEntityManager- Parameters:
luceneQuery- 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.- Returns:
- A
FullTextQuerywrapping around the native Lucene wuery.
-
sessionWithOptions
FullTextSharedSessionBuilder sessionWithOptions()
Deprecated.- Specified by:
sessionWithOptionsin interfaceSession
-
-