SearchSourceBuilder |
SearchSourceBuilder.addRescorer(RescorerBuilder<?> rescoreBuilder) |
|
SearchSourceBuilder |
SearchSourceBuilder.aggregation(AggregationBuilder aggregation) |
Add an aggregation to perform as part of the search.
|
SearchSourceBuilder |
SearchSourceBuilder.aggregation(PipelineAggregationBuilder aggregation) |
Add an aggregation to perform as part of the search.
|
SearchSourceBuilder |
SearchSourceBuilder.clearRescorers() |
|
SearchSourceBuilder |
SearchSourceBuilder.collapse(CollapseBuilder collapse) |
|
SearchSourceBuilder |
SearchSourceBuilder.copyWithNewSlice(SliceBuilder slice) |
Create a shallow copy of this builder with a new slice configuration.
|
SearchSourceBuilder |
SearchSourceBuilder.docValueField(String name) |
Adds a field to load from the doc values and return as part of the
search request.
|
SearchSourceBuilder |
SearchSourceBuilder.docValueField(String name,
String format) |
Adds a field to load from the doc values and return as part of the
search request.
|
SearchSourceBuilder |
SearchSourceBuilder.explain(Boolean explain) |
Should each SearchHit be returned with
an explanation of the hit (ranking).
|
SearchSourceBuilder |
SearchSourceBuilder.ext(List<SearchExtBuilder> searchExtBuilders) |
|
SearchSourceBuilder |
SearchSourceBuilder.fetchSource(boolean fetch) |
Indicates whether the response should contain the stored _source for
every hit
|
SearchSourceBuilder |
SearchSourceBuilder.fetchSource(String[] includes,
String[] excludes) |
Indicate that _source should be returned with every hit, with an
"include" and/or "exclude" set which can include simple wildcard
elements.
|
SearchSourceBuilder |
SearchSourceBuilder.fetchSource(String include,
String exclude) |
Indicate that _source should be returned with every hit, with an
"include" and/or "exclude" set which can include simple wildcard
elements.
|
SearchSourceBuilder |
SearchSourceBuilder.fetchSource(FetchSourceContext fetchSourceContext) |
Indicate how the _source should be fetched.
|
SearchSourceBuilder |
SearchSourceBuilder.from(int from) |
From index to start the search from.
|
static SearchSourceBuilder |
SearchSourceBuilder.fromXContent(XContentParser parser) |
|
static SearchSourceBuilder |
SearchSourceBuilder.fromXContent(XContentParser parser,
boolean checkTrailingTokens) |
|
SearchSourceBuilder |
SearchSourceBuilder.highlighter(HighlightBuilder highlightBuilder) |
Adds highlight to perform as part of the search.
|
SearchSourceBuilder |
SearchSourceBuilder.indexBoost(String index,
float indexBoost) |
Sets the boost a specific index or alias will receive when the query is executed
against it.
|
SearchSourceBuilder |
SearchSourceBuilder.minScore(float minScore) |
Sets the minimum score below which docs will be filtered out.
|
SearchSourceBuilder |
SearchSourceBuilder.postFilter(QueryBuilder postFilter) |
Sets a filter that will be executed after the query has been executed and
only has affect on the search hits (not aggregations).
|
SearchSourceBuilder |
SearchSourceBuilder.profile(boolean profile) |
Should the query be profiled.
|
SearchSourceBuilder |
SearchSourceBuilder.query(QueryBuilder query) |
Sets the search query for this request.
|
SearchSourceBuilder |
SearchSourceBuilder.rewrite(QueryRewriteContext context) |
Rewrites this search source builder into its primitive form.
|
SearchSourceBuilder |
SearchSourceBuilder.scriptField(String name,
Script script) |
Adds a script field under the given name with the provided script.
|
SearchSourceBuilder |
SearchSourceBuilder.scriptField(String name,
Script script,
boolean ignoreFailure) |
Adds a script field under the given name with the provided script.
|
SearchSourceBuilder |
SearchSourceBuilder.searchAfter(Object[] values) |
Set the sort values that indicates which docs this request should "search after".
|
static SearchSourceBuilder |
SearchSourceBuilder.searchSource() |
A static factory method to construct a new search source.
|
SearchSourceBuilder |
SearchSourceBuilder.seqNoAndPrimaryTerm(Boolean seqNoAndPrimaryTerm) |
Should each SearchHit be returned with the
sequence number and primary term of the last modification of the document.
|
SearchSourceBuilder |
SearchSourceBuilder.size(int size) |
The number of search hits to return.
|
SearchSourceBuilder |
SearchSourceBuilder.slice(SliceBuilder builder) |
Sets a filter that will restrict the search hits, the top hits and the aggregations to a slice of the results
of the main query.
|
SearchSourceBuilder |
SearchSourceBuilder.sort(String name) |
Add a sort against the given field name.
|
SearchSourceBuilder |
SearchSourceBuilder.sort(String name,
SortOrder order) |
Adds a sort against the given field name and the sort ordering.
|
SearchSourceBuilder |
SearchSourceBuilder.sort(SortBuilder<?> sort) |
Adds a sort builder.
|
SearchSourceBuilder |
SearchSourceBuilder.stats(List<String> statsGroups) |
The stats groups this request will be aggregated under.
|
SearchSourceBuilder |
SearchSourceBuilder.storedField(String name) |
Adds a stored field to load and return as part of the
search request.
|
SearchSourceBuilder |
SearchSourceBuilder.storedFields(List<String> fields) |
Sets the stored fields to load and return as part of the search request.
|
SearchSourceBuilder |
SearchSourceBuilder.storedFields(StoredFieldsContext context) |
Indicates how the stored fields should be fetched.
|
SearchSourceBuilder |
SearchSourceBuilder.suggest(SuggestBuilder suggestBuilder) |
|
SearchSourceBuilder |
SearchSourceBuilder.terminateAfter(int terminateAfter) |
An optional terminate_after to terminate the search after collecting
terminateAfter documents
|
SearchSourceBuilder |
SearchSourceBuilder.timeout(TimeValue timeout) |
An optional timeout to control how long search is allowed to take.
|
SearchSourceBuilder |
SearchSourceBuilder.trackScores(boolean trackScores) |
Applies when sorting, and controls if scores will be tracked as well.
|
SearchSourceBuilder |
SearchSourceBuilder.trackTotalHits(boolean trackTotalHits) |
Indicates if the total hit count for the query should be tracked.
|
SearchSourceBuilder |
SearchSourceBuilder.trackTotalHitsUpTo(int trackTotalHitsUpTo) |
|
SearchSourceBuilder |
SearchSourceBuilder.version(Boolean version) |
Should each SearchHit be returned with a
version associated with it.
|