Modifier and Type | Method and Description |
---|---|
HSQuery |
MutableSearchFactory.createHSQuery() |
HSQuery |
ImmutableSearchFactory.createHSQuery()
Deprecated.
|
HSQuery |
MutableSearchFactory.createHSQuery(org.apache.lucene.search.Query luceneQuery,
Class<?>... entities) |
HSQuery |
ImmutableSearchFactory.createHSQuery(org.apache.lucene.search.Query luceneQuery,
Class<?>... entityTypes) |
HSQuery |
MutableSearchFactory.createHSQuery(org.apache.lucene.search.Query luceneQuery,
CustomTypeMetadata... types) |
HSQuery |
ImmutableSearchFactory.createHSQuery(org.apache.lucene.search.Query luceneQuery,
CustomTypeMetadata... types) |
HSQuery |
LuceneQueryDescriptor.createHSQuery(SearchIntegrator integrator) |
HSQuery |
MutableSearchFactory.createLuceneBasedHSQuery() |
HSQuery |
ImmutableSearchFactory.createLuceneBasedHSQuery() |
Modifier and Type | Method and Description |
---|---|
HSQuery |
ExtendedSearchIntegrator.createLuceneBasedHSQuery()
Return an Hibernate Search query object.
|
Modifier and Type | Class and Description |
---|---|
class |
AbstractHSQuery
Base class for
HSQuery implementations, exposing basic state needed by all implementations. |
class |
LuceneHSQuery |
Modifier and Type | Method and Description |
---|---|
HSQuery |
AbstractHSQuery.filter(org.apache.lucene.search.Filter filter) |
HSQuery |
AbstractHSQuery.firstResult(int firstResult) |
HSQuery |
LuceneHSQuery.luceneQuery(org.apache.lucene.search.Query query) |
HSQuery |
AbstractHSQuery.maxResults(int maxResults) |
HSQuery |
AbstractHSQuery.projection(String... fields) |
HSQuery |
AbstractHSQuery.setSpatialParameters(Coordinates center,
String fieldName) |
HSQuery |
AbstractHSQuery.sort(org.apache.lucene.search.Sort sort) |
HSQuery |
AbstractHSQuery.targetedEntities(List<Class<?>> classes) |
HSQuery |
AbstractHSQuery.targetedTypes(List<CustomTypeMetadata> types) |
HSQuery |
AbstractHSQuery.tenantIdentifier(String tenantId) |
HSQuery |
AbstractHSQuery.timeoutExceptionFactory(TimeoutExceptionFactory exceptionFactory) |
Modifier and Type | Method and Description |
---|---|
HSQuery |
QueryDescriptor.createHSQuery(SearchIntegrator searchIntegrator) |
HSQuery |
HSQuery.filter(org.apache.lucene.search.Filter filter)
Allows to use lucene filters.
|
HSQuery |
HSQuery.firstResult(int firstResult)
Set the first element to retrieve.
|
HSQuery |
HSQuery.luceneQuery(org.apache.lucene.search.Query query)
Defines the underlying Lucene query
|
HSQuery |
HSQuery.maxResults(int maxResults)
Set the maximum number of elements to retrieve.
|
HSQuery |
HSQuery.projection(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).
|
HSQuery |
HSQuery.setSpatialParameters(Coordinates center,
String fieldName)
setSpatialParameters.
|
HSQuery |
HSQuery.sort(org.apache.lucene.search.Sort sort)
Lets Lucene sort the results.
|
HSQuery |
HSQuery.targetedEntities(List<Class<?>> classes)
Defines the targeted entities.
|
HSQuery |
HSQuery.targetedTypes(List<CustomTypeMetadata> types)
Defines the targeted types, which may carry custom metadata which should override the supporting entity type's metadata.
|
HSQuery |
HSQuery.tenantIdentifier(String tenantId) |
HSQuery |
HSQuery.timeoutExceptionFactory(TimeoutExceptionFactory exceptionFactory)
Define the timeout exception factory to customize the exception returned by the user.
|
Modifier and Type | Method and Description |
---|---|
HSQuery |
SearchIntegrator.createHSQuery()
Deprecated.
This method will be removed. Use
SearchIntegrator.createHSQuery(Query, Class...) |
HSQuery |
SearchIntegrator.createHSQuery(org.apache.lucene.search.Query luceneQuery,
Class<?>... entityTypes)
Return an Hibernate Search query object.
|
HSQuery |
SearchIntegrator.createHSQuery(org.apache.lucene.search.Query luceneQuery,
CustomTypeMetadata... types)
Return an Hibernate Search query object.
|
Copyright © 2006–2017 Hibernate. All rights reserved.