Interface SearchQuery<H>
-
- Type Parameters:
H- The type of query hits.
- All Superinterfaces:
SearchFetchable<H>
- All Known Subinterfaces:
ExtendedSearchQuery<H,R>,SearchQueryImplementor<H>
- All Known Implementing Classes:
AbstractSearchQuery
public interface SearchQuery<H> extends SearchFetchable<H>
A search query, allowing to fetch search results.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Deprecated Methods Modifier and Type Method Description <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.default StringgetQueryString()Deprecated.UsequeryString()instead.StringqueryString()-
Methods inherited from interface org.hibernate.search.engine.search.query.SearchFetchable
fetch, fetch, fetchAll, fetchAllHits, fetchHits, fetchHits, fetchSingleHit, fetchTotalHitCount, scroll
-
-
-
-
Method Detail
-
queryString
String queryString()
- Returns:
- A textual representation of the query.
-
getQueryString
@Deprecated default String getQueryString()
Deprecated.UsequeryString()instead.- Returns:
- A textual representation of the query.
-
extension
<Q> Q extension(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.- 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, ...).
-
-