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 public interface FullTextSession extends org.hibernate.Session, FullTextEntityManager
Deprecated.
Instead of using Hibernate Search 5 APIs, get a SearchSession using Search.session(Session). Refer to the migration guide for more information.
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 Type
    Method
    Description
    createFullTextQuery(Query luceneQuery, Class<?>... entities)
    Deprecated.
    Create a fulltext query on top of a native Lucene query returning the matching objects of type entities and their respective subclasses.
    Deprecated.
     

    Methods inherited from interface java.io.Closeable

    close

    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, 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, 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 Details

    • createFullTextQuery

      FullTextQuery createFullTextQuery(Query luceneQuery, Class<?>... entities)
      Deprecated.
      Description copied from interface: FullTextEntityManager
      Create a fulltext query on top of a native Lucene query returning the matching objects of type entities and their respective subclasses.
      Specified by:
      createFullTextQuery in interface FullTextEntityManager
      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 FullTextQuery wrapping around the native Lucene wuery.
    • sessionWithOptions

      FullTextSharedSessionBuilder sessionWithOptions()
      Deprecated.
      Specified by:
      sessionWithOptions in interface org.hibernate.Session