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)
Experimental!
Use it to try out the newly introduced distributed queries.
|
<E> CacheQuery<E> |
SearchManager.getQuery(Query luceneQuery,
Class<?>... classes)
This is a simple method that will just return a
CacheQuery , filtered according to a set of classes passed
in. |
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.