Skip to content

Commit 811c68c

Browse files
authored
fix field_names in top_hits aggregation (#2675)
1 parent bc1c789 commit 811c68c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/aggregation/metric/top_hits.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -229,6 +229,7 @@ impl TopHitsAggregationReq {
229229
self.sort
230230
.iter()
231231
.map(|KeyOrder { field, .. }| field.as_str())
232+
.chain(self.doc_value_fields.iter().map(|s| s.as_str()))
232233
.collect()
233234
}
234235

0 commit comments

Comments
 (0)