public interface FullTextSession extends org.hibernate.Session, FullTextEntityManager
Session
with fulltext search and indexing capabilities.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(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, 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
beginTransaction, close, createCriteria, createCriteria, createCriteria, createCriteria, createQuery, createStoredProcedureCall, createStoredProcedureCall, createStoredProcedureCall, doReturningWork, doWork, getJdbcBatchSize, getNamedProcedureCall, getNamedQuery, getTenantIdentifier, getTransaction, isConnected, isOpen, setJdbcBatchSize
close, 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, unwrap
createNamedQuery, createNativeQuery, createNativeQuery, createNativeQuery, getNamedNativeQuery, getNamedSQLQuery
createIndexer, flushToIndexes, getSearchFactory, index, purge, purgeAll
FullTextQuery createFullTextQuery(org.apache.lucene.search.Query luceneQuery, Class<?>... entities)
FullTextEntityManager
entities
and their respective subclasses.createFullTextQuery
in interface FullTextEntityManager
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.FullTextQuery
wrapping around the native Lucene wuery.FullTextQuery createFullTextQuery(QueryDescriptor descriptor, Class<?>... entities)
FullTextEntityManager
createFullTextQuery
in interface FullTextEntityManager
descriptor
- 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.Session
Copyright © 2006-2023 Red Hat, Inc. and others. Licensed under the GNU Lesser General Public License (LGPL), version 2.1 or later.