fix field_names in top_hits aggregation (#2675)

This commit is contained in:
PSeitz-dd
2025-07-21 06:19:30 +02:00
committed by GitHub
parent bc1c789897
commit 811c68cdb2

View File

@@ -229,6 +229,7 @@ impl TopHitsAggregationReq {
self.sort
.iter()
.map(|KeyOrder { field, .. }| field.as_str())
.chain(self.doc_value_fields.iter().map(|s| s.as_str()))
.collect()
}