1.8 KiB
1.8 KiB
AggregationsTopHitsAggregation [interface-AggregationsTopHitsAggregation]
| Name | Type | Description |
|---|---|---|
_source |
SearchSourceConfig | Selects the fields of the source that are returned. |
docvalue_fields |
(QueryDslFieldAndFormat | Field)[] |
explain |
boolean | If true, returns detailed information about score computation as part of a hit. |
fields |
(QueryDslFieldAndFormat | Field)[] |
from |
integer | Starting document offset. |
highlight |
SearchHighlight | Specifies the highlighter to use for retrieving highlighted snippets from one or more fields in the search results. |
script_fields |
Record<string, ScriptField> | Returns the result of one or more script evaluations for each hit. |
seq_no_primary_term |
boolean | If true, returns sequence number and primary term of the last modification of each hit. |
size |
integer | The maximum number of top matching hits to return per bucket. |
sort |
Sort | Sort order of the top matching hits. By default, the hits are sorted by the score of the main query. |
stored_fields |
Fields | Returns values for the specified stored fields (fields that use the store mapping option). |
track_scores |
boolean | If true, calculates and returns document scores, even if the scores are not used for sorting. |
version |
boolean | If true, returns document version as part of a hit. |