Fix page size error. (#4401)

### What problem does this PR solve?

#4400

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
Kevin Hu 2025-01-07 19:06:31 +08:00 committed by GitHub
parent ac89a2dda1
commit d9a4e4cc3b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -371,6 +371,7 @@ class Dealer:
"count": v["count"]} for k,
v in sorted(ranks["doc_aggs"].items(),
key=lambda x:x[1]["count"] * -1)]
ranks["chunks"] = ranks["chunks"][:page_size]
return ranks