TopHitsAgg
Property | Description | Default | Type | Required |
---|---|---|---|---|
field | (Excluded from table) | None | str (Excluded) | No |
type | Type of aggregation | DynamicAggType.TOP_HITS | DynamicAggType | Yes |
start | The offset from the first result you want to fetch | 0 | int | No |
size | The maximum number of top matching hits to return per bucket | 3 | int | No |
order | How the top matching hits should be sorted | None | list[OrderEntry] | No |
fetch_fields | List of fields to fetch | None | list[str] | No |
exclude_fields | List of fields to exclude | None | list[str] | No |