Package | Description |
---|---|
org.hibernate.search.query.engine.spi | |
org.hibernate.search.spi |
Modifier and Type | Method and Description |
---|---|
HSQuery |
QueryDescriptor.createHSQuery(SearchIntegrator integrator,
IndexedTypeMap<CustomTypeMetadata> types) |
HSQuery |
QueryDescriptor.createHSQuery(SearchIntegrator integrator,
IndexedTypeSet types) |
HSQuery |
HSQuery.filter(org.apache.lucene.search.Filter filter)
Deprecated.
use the
FullTextFilterDef approach,
or handle filtering when building the query (see BooleanJunction.must(Query)
and MustJunction.disableScoring() ). |
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.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(org.apache.lucene.search.Query fullTextQuery,
Class<?>... entityTypes)
Return an Hibernate Search query object.
|
HSQuery |
SearchIntegrator.createHSQuery(org.apache.lucene.search.Query fullTextQuery,
IndexedTypeMap<CustomTypeMetadata> types)
Return an Hibernate Search query object.
|
Copyright © 2006-2019 Red Hat, Inc. and others. Licensed under the GNU Lesser General Public License (LGPL), version 2.1 or later.