public interface FullTextSession extends org.hibernate.Session, FullTextEntityManager
Session with fulltext search and indexing capabilities.| Modifier and Type | Method and Description |
|---|---|
FullTextQuery |
createFullTextQuery(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(QueryDescriptor descriptor,
Class<?>... entities)
Creates a fulltext query from the given query descriptor.
|
FullTextSharedSessionBuilder |
sessionWithOptions() |
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, doReturningWork, doWork, 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, updatebeginTransaction, close, createCriteria, createCriteria, createCriteria, createCriteria, createQuery, createStoredProcedureCall, createStoredProcedureCall, createStoredProcedureCall, getJdbcBatchSize, getNamedProcedureCall, getNamedQuery, getTenantIdentifier, getTransaction, isConnected, isOpen, setJdbcBatchSizeclose, contains, createNamedQuery, createNamedStoredProcedureQuery, createNativeQuery, createNativeQuery, createNativeQuery, 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, unwrapcreateNamedQuery, createNativeQuery, createNativeQuery, createNativeQuery, getNamedNativeQuery, getNamedSQLQuerycreateIndexer, flushToIndexes, getSearchFactory, index, purge, purgeAllFullTextQuery createFullTextQuery(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(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()
sessionWithOptions in interface org.hibernate.SessionCopyright © 2006-2019 Red Hat, Inc. and others. Licensed under the GNU Lesser General Public License (LGPL), version 2.1 or later.