Package | Description |
---|---|
org.infinispan.query |
Query API.
|
Modifier and Type | Method and Description |
---|---|
CacheQuery<E> |
CacheQuery.disableFullTextFilter(String name)
Disable a given filter by its name.
|
CacheQuery<E> |
CacheQuery.filter(Filter f)
Allows lucene to filter the results.
|
CacheQuery<E> |
CacheQuery.firstResult(int index)
Sets a result with a given index to the first result.
|
<E> CacheQuery<E> |
SearchManager.getClusteredQuery(Query luceneQuery,
Class<?>... classes)
Deprecated.
since 9.2, use
SearchManager.getQuery(Query, IndexedQueryMode, Class[]) with QueryMode.BROADCAST |
<E> CacheQuery<E> |
SearchManager.getQuery(Query luceneQuery,
Class<?>... classes) |
<E> CacheQuery<E> |
SearchManager.getQuery(Query luceneQuery,
IndexedQueryMode indexedQueryMode,
Class<?>... classes)
This is a simple method that will just return a
CacheQuery , filtered according to a set of classes passed
in. |
<E> CacheQuery<E> |
SearchManager.getQuery(String queryString,
IndexedQueryMode indexedQueryMode,
Class<?>... classes)
Builds a
CacheQuery from a query string. |
CacheQuery<E> |
CacheQuery.maxResults(int numResults)
Sets the maximum number of results to the number passed in as a parameter.
|
CacheQuery<Object[]> |
CacheQuery.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"
A projectable field must be stored in the Lucene index and use a
TwoWayFieldBridge
Unless notified in their JavaDoc, all built-in bridges are two-way. |
CacheQuery<E> |
CacheQuery.sort(Sort s)
Allows lucene to sort the results.
|
CacheQuery<E> |
CacheQuery.timeout(long timeout,
TimeUnit timeUnit)
Set the timeout for this query.
|
Copyright © 2018 JBoss, a division of Red Hat. All rights reserved.