Package | Description |
---|---|
org.hibernate.search | |
org.hibernate.search.jpa | |
org.hibernate.search.query.hibernate.impl |
Modifier and Type | Interface and Description |
---|---|
interface |
FullTextQuery
The base interface for full-text queries using the Hibernate ORM API (
Query ). |
Modifier and Type | Method and Description |
---|---|
FullTextQuery |
FullTextEntityManager.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 |
FullTextEntityManager.createFullTextQuery(org.hibernate.search.query.engine.spi.QueryDescriptor descriptor,
Class<?>... entities)
Creates a fulltext query from the given query descriptor.
|
FullTextQuery |
FullTextQuery.initializeObjectsWith(org.hibernate.search.query.ObjectLookupMethod lookupMethod,
org.hibernate.search.query.DatabaseRetrievalMethod retrievalMethod)
Refine the strategies used to load entities.
|
FullTextQuery |
FullTextQuery.limitExecutionTimeTo(long timeout,
TimeUnit timeUnit)
Limit the time used by Hibernate Search to execute the query.
|
FullTextQuery |
FullTextQuery.setCriteriaQuery(Criteria criteria)
Defines the Database Query used to load the Lucene results.
|
FullTextQuery |
FullTextQuery.setFilter(org.apache.lucene.search.Filter filter)
Deprecated.
|
FullTextQuery |
FullTextQuery.setFirstResult(int var1) |
FullTextQuery |
FullTextQuery.setFlushMode(FlushModeType flushMode) |
FullTextQuery |
FullTextQuery.setHint(String hintName,
Object value) |
FullTextQuery |
FullTextQuery.setMaxResults(int maxResult) |
FullTextQuery |
FullTextQuery.setProjection(String... fields)
Defines the Lucene field names projected and returned in a query result
Each field is converted back to it's object representation, an Object[] being returned for each "row"
(similar to an HQL or a Criteria API projection).
|
FullTextQuery |
FullTextQuery.setResultTransformer(ResultTransformer transformer)
Defines a result transformer used during projection
|
FullTextQuery |
FullTextQuery.setSort(org.apache.lucene.search.Sort sort)
Allows to let lucene sort the results.
|
FullTextQuery |
FullTextQuery.setSpatialParameters(org.hibernate.search.spatial.Coordinates center,
String fieldName)
Defines the center of the spatial search for this query to project distance in results
|
FullTextQuery |
FullTextQuery.setSpatialParameters(double latitude,
double longitude,
String fieldName)
Defines the center of the spatial search for this query to project distance in results
|
FullTextQuery |
FullTextQuery.setTimeout(long timeout,
TimeUnit timeUnit)
Define a timeout period for a given unit of time.
|
Modifier and Type | Class and Description |
---|---|
class |
FullTextQueryImpl
Implementation of
FullTextQuery . |
Copyright © 2019 JBoss by Red Hat. All rights reserved.