public abstract class AbstractExtendedSearchQueryOptionsStep<S extends SearchQueryOptionsStep<S,H,SF>,H,R extends SearchResult<H>,PDF extends SearchPredicateFactory,SF extends SearchSortFactory,C> extends AbstractSearchQueryOptionsStep<S,H,PDF,SF,C>
| Constructor and Description |
|---|
AbstractExtendedSearchQueryOptionsStep(IndexScope<C> indexScope,
SearchQueryBuilder<H,C> searchQueryBuilder) |
| Modifier and Type | Method and Description |
|---|---|
R |
fetch()
Execute the query and return the
SearchResult. |
R |
fetch(Integer limit)
Execute the query and return the
SearchResult. |
R |
fetch(Integer limit,
Integer offset)
Execute the query and return the
SearchResult. |
abstract ExtendedSearchQuery<H,R> |
toQuery()
Create a
SearchQuery instance
matching the definition given in the previous DSL steps. |
extendPredicateFactory, extendSortFactory, fetchHits, fetchHits, fetchHits, fetchSingleHit, fetchTotalHitCount, predicate, predicate, routing, routing, sort, sort, thisAsSpublic AbstractExtendedSearchQueryOptionsStep(IndexScope<C> indexScope, SearchQueryBuilder<H,C> searchQueryBuilder)
public abstract ExtendedSearchQuery<H,R> toQuery()
SearchQueryFinalStepSearchQuery instance
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().
toQuery in interface SearchQueryFinalStep<H>toQuery in class AbstractSearchQueryOptionsStep<S extends SearchQueryOptionsStep<S,H,SF>,H,PDF extends SearchPredicateFactory,SF extends SearchSortFactory,C>SearchQuery resulting from the previous DSL steps.public R fetch()
SearchFetchableSearchResult.fetch in interface SearchFetchable<H>fetch in class AbstractSearchQueryOptionsStep<S extends SearchQueryOptionsStep<S,H,SF>,H,PDF extends SearchPredicateFactory,SF extends SearchSortFactory,C>SearchResult.public R fetch(Integer limit)
SearchFetchableSearchResult.fetch in interface SearchFetchable<H>fetch in class AbstractSearchQueryOptionsStep<S extends SearchQueryOptionsStep<S,H,SF>,H,PDF extends SearchPredicateFactory,SF extends SearchSortFactory,C>limit - The maximum number of hits to be included in the SearchResult. null means no limit.SearchResult.public R fetch(Integer limit, Integer offset)
SearchFetchableSearchResult.fetch in interface SearchFetchable<H>fetch in class AbstractSearchQueryOptionsStep<S extends SearchQueryOptionsStep<S,H,SF>,H,PDF extends SearchPredicateFactory,SF extends SearchSortFactory,C>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.Copyright © 2006-2019 Red Hat, Inc. and others. Licensed under the GNU Lesser General Public License (LGPL), version 2.1 or later.