Package | Description |
---|---|
org.hibernate.search | |
org.hibernate.search.query.hibernate.impl |
Modifier and Type | Method and Description |
---|---|
FullTextQuery |
FullTextSession.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 |
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)
*Experimental* API, subject to change or removal
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.setFetchSize(int i)
Defines scrollable result fetch size as well as the JDBC fetch size
|
FullTextQuery |
FullTextQuery.setFilter(org.apache.lucene.search.Filter filter)
Deprecated.
|
FullTextQuery |
FullTextQuery.setFirstResult(int firstResult)
|
FullTextQuery |
FullTextQuery.setMaxResults(int maxResults)
|
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, the Aliases provided are the projection aliases.
|
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 . |
Modifier and Type | Method and Description |
---|---|
FullTextQuery |
FullTextQueryImpl.initializeObjectsWith(org.hibernate.search.query.ObjectLookupMethod lookupMethod,
org.hibernate.search.query.DatabaseRetrievalMethod retrievalMethod) |
FullTextQuery |
FullTextQueryImpl.limitExecutionTimeTo(long timeout,
TimeUnit timeUnit) |
FullTextQuery |
FullTextQueryImpl.setCriteriaQuery(Criteria criteria) |
FullTextQuery |
FullTextQueryImpl.setFetchSize(int fetchSize) |
FullTextQuery |
FullTextQueryImpl.setFilter(org.apache.lucene.search.Filter filter) |
FullTextQuery |
FullTextQueryImpl.setFirstResult(int firstResult) |
FullTextQuery |
FullTextQueryImpl.setMaxResults(int maxResults) |
FullTextQuery |
FullTextQueryImpl.setProjection(String... fields) |
FullTextQuery |
FullTextQueryImpl.setResultTransformer(ResultTransformer transformer) |
FullTextQuery |
FullTextQueryImpl.setSort(org.apache.lucene.search.Sort sort) |
FullTextQuery |
FullTextQueryImpl.setSpatialParameters(org.hibernate.search.spatial.Coordinates center,
String fieldName) |
FullTextQuery |
FullTextQueryImpl.setSpatialParameters(double latitude,
double longitude,
String fieldName) |
FullTextQuery |
FullTextQueryImpl.setTimeout(int timeout) |
FullTextQuery |
FullTextQueryImpl.setTimeout(long timeout,
TimeUnit timeUnit) |
Copyright © 2017 JBoss by Red Hat. All rights reserved.