TopHitsAgg

PropertyDescriptionDefaultTypeRequired
field(Excluded from table)Nonestr (Excluded)No
typeType of aggregationDynamicAggType.TOP_HITSDynamicAggTypeYes
startThe offset from the first result you want to fetch0intNo
sizeThe maximum number of top matching hits to return per bucket3intNo
orderHow the top matching hits should be sortedNonelist[OrderEntry]No
fetch_fieldsList of fields to fetchNonelist[str]No
exclude_fieldsList of fields to excludeNonelist[str]No
  • No labels