Class AbstractExtendedSearchQueryOptionsStep<SR,S extends SearchQueryOptionsStep<SR,S,H,LOS,SF,AF>,H,R extends SearchResult<H>,SCR extends SearchScroll<H>,LOS,PDF extends TypedSearchPredicateFactory<SR>,SF extends TypedSearchSortFactory<SR>,AF extends TypedSearchAggregationFactory<SR>,SC extends SearchQueryIndexScope<SR,?>>
java.lang.Object
org.hibernate.search.engine.search.query.dsl.spi.AbstractSearchQueryOptionsStep<SR,S,H,LOS,PDF,SF,AF,SC>
org.hibernate.search.engine.search.query.dsl.spi.AbstractExtendedSearchQueryOptionsStep<SR,S,H,R,SCR,LOS,PDF,SF,AF,SC>
- All Implemented Interfaces:
SearchQueryFinalStep<H>,SearchQueryOptionsStep<SR,,S, H, LOS, SF, AF> SearchQueryWhereStep<SR,,S, H, LOS, PDF> SearchFetchable<H>
public abstract class AbstractExtendedSearchQueryOptionsStep<SR,S extends SearchQueryOptionsStep<SR,S,H,LOS,SF,AF>,H,R extends SearchResult<H>,SCR extends SearchScroll<H>,LOS,PDF extends TypedSearchPredicateFactory<SR>,SF extends TypedSearchSortFactory<SR>,AF extends TypedSearchAggregationFactory<SR>,SC extends SearchQueryIndexScope<SR,?>>
extends AbstractSearchQueryOptionsStep<SR,S,H,LOS,PDF,SF,AF,SC>
-
Field Summary
Fields inherited from class org.hibernate.search.engine.search.query.dsl.spi.AbstractSearchQueryOptionsStep
scope -
Constructor Summary
ConstructorsConstructorDescriptionAbstractExtendedSearchQueryOptionsStep(SC scope, SearchQueryBuilder<H> searchQueryBuilder, SearchLoadingContextBuilder<?, LOS> loadingContextBuilder) -
Method Summary
Modifier and TypeMethodDescriptionExecute the query and return theSearchResult, limiting tolimithits.fetchAll()Execute the query and return theSearchResult, including all hits, without any sort of limit.scroll(int chunkSize) Execute the query continuously to deliver results in small chunks through aSearchScroll.abstract ExtendedSearchQuery<H, R, SCR> toQuery()Create aSearchQueryinstance matching the definition given in the previous DSL steps.Methods inherited from class org.hibernate.search.engine.search.query.dsl.spi.AbstractSearchQueryOptionsStep
aggregation, aggregation, aggregationFactory, failAfter, fetchAllHits, fetchHits, fetchHits, fetchSingleHit, fetchTotalHitCount, highlighter, highlighter, highlighter, highlighter, highlighterFactory, loading, param, predicateFactory, routing, routing, sort, sort, sortFactory, thisAsS, totalHitCountThreshold, truncateAfter, where, where, where
-
Constructor Details
-
AbstractExtendedSearchQueryOptionsStep
public AbstractExtendedSearchQueryOptionsStep(SC scope, SearchQueryBuilder<H> searchQueryBuilder, SearchLoadingContextBuilder<?, LOS> loadingContextBuilder)
-
-
Method Details
-
toQuery
Description copied from interface:SearchQueryFinalStepCreate 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().- Specified by:
toQueryin interfaceSearchQueryFinalStep<SR>- Overrides:
toQueryin classAbstractSearchQueryOptionsStep<SR,S extends SearchQueryOptionsStep<SR, S, H, LOS, SF, AF>, H, LOS, PDF extends TypedSearchPredicateFactory<SR>, SF extends TypedSearchSortFactory<SR>, AF extends TypedSearchAggregationFactory<SR>, SC extends SearchQueryIndexScope<SR, ?>> - Returns:
- The
SearchQueryresulting from the previous DSL steps.
-
fetchAll
Description copied from interface:SearchFetchableExecute the query and return theSearchResult, including all hits, without any sort of limit.SearchFetchable.fetch(Integer)orSearchFetchable.fetch(Integer, Integer)should generally be preferred, for performance reasons.- Specified by:
fetchAllin interfaceSearchFetchable<SR>- Overrides:
fetchAllin classAbstractSearchQueryOptionsStep<SR,S extends SearchQueryOptionsStep<SR, S, H, LOS, SF, AF>, H, LOS, PDF extends TypedSearchPredicateFactory<SR>, SF extends TypedSearchSortFactory<SR>, AF extends TypedSearchAggregationFactory<SR>, SC extends SearchQueryIndexScope<SR, ?>> - Returns:
- The
SearchResult.
-
fetch
Description copied from interface:SearchFetchableExecute the query and return theSearchResult, limiting tolimithits.- Specified by:
fetchin interfaceSearchFetchable<SR>- Overrides:
fetchin classAbstractSearchQueryOptionsStep<SR,S extends SearchQueryOptionsStep<SR, S, H, LOS, SF, AF>, H, LOS, PDF extends TypedSearchPredicateFactory<SR>, SF extends TypedSearchSortFactory<SR>, AF extends TypedSearchAggregationFactory<SR>, SC extends SearchQueryIndexScope<SR, ?>> - Parameters:
limit- The maximum number of hits to be included in theSearchResult.nullmeans no limit.- Returns:
- The
SearchResult.
-
fetch
Description copied from interface:SearchFetchable- Specified by:
fetchin interfaceSearchFetchable<SR>- Overrides:
fetchin classAbstractSearchQueryOptionsStep<SR,S extends SearchQueryOptionsStep<SR, S, H, LOS, SF, AF>, H, LOS, PDF extends TypedSearchPredicateFactory<SR>, SF extends TypedSearchSortFactory<SR>, AF extends TypedSearchAggregationFactory<SR>, SC extends SearchQueryIndexScope<SR, ?>> - Parameters:
offset- The number of hits to skip before adding the hits to theSearchResult.nullmeans no offset.limit- The maximum number of hits to be included in theSearchResult.nullmeans no limit.- Returns:
- The
SearchResult.
-
scroll
Description copied from interface:SearchFetchableExecute the query continuously to deliver results in small chunks through aSearchScroll.Useful to process large datasets.
- Specified by:
scrollin interfaceSearchFetchable<SR>- Overrides:
scrollin classAbstractSearchQueryOptionsStep<SR,S extends SearchQueryOptionsStep<SR, S, H, LOS, SF, AF>, H, LOS, PDF extends TypedSearchPredicateFactory<SR>, SF extends TypedSearchSortFactory<SR>, AF extends TypedSearchAggregationFactory<SR>, SC extends SearchQueryIndexScope<SR, ?>> - Parameters:
chunkSize- The maximum number of hits to be returned for each call toSearchScroll.next()- Returns:
- The
SearchScroll.
-