TopHitsAggregationBuilder |
TopHitsAggregationBuilder.docValueField(String docValueField) |
Adds a field to load from doc values and return as part of
the search request.
|
TopHitsAggregationBuilder |
TopHitsAggregationBuilder.docValueField(String docValueField,
String format) |
Adds a field to load from doc values and return as part of
the search request.
|
TopHitsAggregationBuilder |
TopHitsAggregationBuilder.explain(boolean explain) |
Should each SearchHit be returned
with an explanation of the hit (ranking).
|
TopHitsAggregationBuilder |
TopHitsAggregationBuilder.fetchSource(boolean fetch) |
Indicates whether the response should contain the stored _source for
every hit
|
TopHitsAggregationBuilder |
TopHitsAggregationBuilder.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.
|
TopHitsAggregationBuilder |
TopHitsAggregationBuilder.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.
|
TopHitsAggregationBuilder |
TopHitsAggregationBuilder.fetchSource(FetchSourceContext fetchSourceContext) |
Indicate how the _source should be fetched.
|
TopHitsAggregationBuilder |
TopHitsAggregationBuilder.from(int from) |
From index to start the search from.
|
TopHitsAggregationBuilder |
TopHitsAggregationBuilder.highlighter(HighlightBuilder highlightBuilder) |
Adds highlight to perform as part of the search.
|
static TopHitsAggregationBuilder |
TopHitsAggregationBuilder.parse(String aggregationName,
XContentParser parser) |
|
TopHitsAggregationBuilder |
TopHitsAggregationBuilder.scriptField(String name,
Script script) |
Adds a script field under the given name with the provided script.
|
TopHitsAggregationBuilder |
TopHitsAggregationBuilder.scriptField(String name,
Script script,
boolean ignoreFailure) |
Adds a script field under the given name with the provided script.
|
TopHitsAggregationBuilder |
TopHitsAggregationBuilder.scriptFields(List<SearchSourceBuilder.ScriptField> scriptFields) |
|
TopHitsAggregationBuilder |
TopHitsAggregationBuilder.seqNoAndPrimaryTerm(Boolean seqNoAndPrimaryTerm) |
Should each SearchHit be returned with the
sequence number and primary term of the last modification of the document.
|
TopHitsAggregationBuilder |
TopHitsAggregationBuilder.size(int size) |
The number of search hits to return.
|
TopHitsAggregationBuilder |
TopHitsAggregationBuilder.sort(String name) |
Add a sort against the given field name.
|
TopHitsAggregationBuilder |
TopHitsAggregationBuilder.sort(String name,
SortOrder order) |
Adds a sort against the given field name and the sort ordering.
|
TopHitsAggregationBuilder |
TopHitsAggregationBuilder.sort(SortBuilder<?> sort) |
Adds a sort builder.
|
TopHitsAggregationBuilder |
TopHitsAggregationBuilder.sorts(List<SortBuilder<?>> sorts) |
Adds a sort builder.
|
TopHitsAggregationBuilder |
TopHitsAggregationBuilder.storedField(String field) |
Adds a stored field to load and return (note, it must be stored) as part of the search request.
|
TopHitsAggregationBuilder |
TopHitsAggregationBuilder.storedFields(List<String> fields) |
Sets the stored fields to load and return as part of the search request.
|
TopHitsAggregationBuilder |
TopHitsAggregationBuilder.subAggregations(AggregatorFactories.Builder subFactories) |
|
TopHitsAggregationBuilder |
TopHitsAggregationBuilder.trackScores(boolean trackScores) |
Applies when sorting, and controls if scores will be tracked as well.
|
TopHitsAggregationBuilder |
TopHitsAggregationBuilder.version(boolean version) |
Should each SearchHit be returned
with a version associated with it.
|