Package org.hibernate.search
Interface FullTextSession
- All Superinterfaces:
AutoCloseable,Closeable,javax.persistence.EntityManager,FullTextEntityManager,org.hibernate.jpa.HibernateEntityManager,org.hibernate.query.QueryProducer,Serializable,org.hibernate.Session,org.hibernate.SharedSessionContract
Deprecated.
Extends the Hibernate
Session with fulltext search and indexing capabilities.- Author:
- Emmanuel Bernard
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.hibernate.Session
org.hibernate.Session.LockRequest -
Method Summary
Modifier and TypeMethodDescriptioncreateFullTextQuery(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.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, unwrapMethods inherited from interface org.hibernate.search.jpa.FullTextEntityManager
createIndexer, flushToIndexes, getSearchFactory, index, purge, purgeAllMethods inherited from interface org.hibernate.jpa.HibernateEntityManager
getSessionMethods inherited from interface org.hibernate.query.QueryProducer
createNamedQuery, createNativeQuery, createNativeQuery, createNativeQuery, getNamedNativeQuery, getNamedSQLQueryMethods 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, getReference, 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, updateMethods 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 Details
-
createFullTextQuery
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 interfaceorg.hibernate.Session
-
SearchSessionusingSearch.session(Session). Refer to the migration guide for more information.