Interface SearchQueryFinalStep<H>
- Type Parameters:
H- The type of hits for the created query.
- All Superinterfaces:
SearchFetchable<H>
- All Known Subinterfaces:
SearchQueryOptionsStep<SR,S, H, LOS, SF, AF>
- All Known Implementing Classes:
AbstractExtendedSearchQueryOptionsStep,AbstractSearchQueryOptionsStep
The final step in a query definition,
where the query can be
executed or retrieved as an object.-
Method Summary
Modifier and TypeMethodDescriptiontoQuery()Create aSearchQueryinstance matching the definition given in the previous DSL steps.Methods inherited from interface org.hibernate.search.engine.search.query.SearchFetchable
fetch, fetch, fetchAll, fetchAllHits, fetchHits, fetchHits, fetchSingleHit, fetchTotalHitCount, scroll
-
Method Details
-
toQuery
SearchQuery<H> toQuery()Create aSearchQueryinstance matching the definition given in the previous DSL steps.Calling this method is generally not necessary as most query execution methods are also implemented by this DSL step, so for example
.toQuery().fetch()can be replaced with simply.fetch().- Returns:
- The
SearchQueryresulting from the previous DSL steps.
-