Interface SearchQuery<H>
- Type Parameters:
H- The type of query hits.
- All Superinterfaces:
SearchFetchable<H>
- All Known Subinterfaces:
ElasticsearchSearchQuery<H>,ExtendedSearchQuery<H,,R, SC> LuceneSearchQuery<H>,SearchQueryImplementor<H>
- All Known Implementing Classes:
AbstractSearchQuery
A search query, allowing to fetch search results.
-
Method Summary
Modifier and TypeMethodDescription<Q> Qextension(SearchQueryExtension<Q, H> extension) Extend the current query with the given extension, resulting in an extended query offering more options or a more detailed result type.Methods inherited from interface org.hibernate.search.engine.search.query.SearchFetchable
fetch, fetch, fetchAll, fetchAllHits, fetchHits, fetchHits, fetchSingleHit, fetchTotalHitCount, scroll
-
Method Details
-
queryString
String queryString()- Returns:
- A textual representation of the query.
-
extension
Extend the current query with the given extension, resulting in an extended query offering more options or a more detailed result type.- Type Parameters:
Q- The type of queries provided by the extension.- Parameters:
extension- The extension to the predicate DSL.- Returns:
- The extended query.
- Throws:
SearchException- If the extension cannot be applied (wrong underlying backend, ...).
-