T - The type of results.public interface SearchQuery<T>
| Modifier and Type | Method and Description |
|---|---|
default SearchResult<T> |
fetch()
Execute the query and return the
SearchResult. |
default SearchResult<T> |
fetch(int limit)
Execute the query and return the
SearchResult. |
default SearchResult<T> |
fetch(Integer limit,
Integer offset)
Execute the query and return the
SearchResult. |
default SearchResult<T> |
fetch(long limit)
Execute the query and return the
SearchResult. |
SearchResult<T> |
fetch(Long limit,
Long offset)
Execute the query and return the
SearchResult. |
long |
fetchTotalHitCount()
Execute the query and return the total hit count.
|
String |
getQueryString() |
default SearchResult<T> fetch()
SearchResult.SearchResult.org.hibernate.search.util.common.SearchException - If something goes wrong while executing the query.default SearchResult<T> fetch(long limit)
SearchResult.limit - The maximum number of hits to be included in the SearchResult.SearchResult.org.hibernate.search.util.common.SearchException - If something goes wrong while executing the query.default SearchResult<T> fetch(int limit)
SearchResult.limit - The maximum number of hits to be included in the SearchResult.SearchResult.org.hibernate.search.util.common.SearchException - If something goes wrong while executing the query.SearchResult<T> fetch(Long limit, Long offset)
SearchResult.limit - The maximum number of hits to be included in the SearchResult. null means no limit.offset - The number of hits to skip before adding the hits to the SearchResult. null means no offset.SearchResult.org.hibernate.search.util.common.SearchException - If something goes wrong while executing the query.default SearchResult<T> fetch(Integer limit, Integer offset)
SearchResult.limit - The maximum number of hits to be included in the SearchResult. null means no limit.offset - The number of hits to skip before adding the hits to the SearchResult. null means no offset.SearchResult.org.hibernate.search.util.common.SearchException - If something goes wrong while executing the query.long fetchTotalHitCount()
org.hibernate.search.util.common.SearchException - If something goes wrong while executing the query.String getQueryString()
Copyright © 2006-2019 Red Hat, Inc. and others. Licensed under the GNU Lesser General Public License (LGPL), version 2.1 or later.