zoekt-webserver ignores TotalMaxMatchCount

Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.

While working on #389753 (comment 1270387146), we've discovered that zoekt-webserver returns all results and ignores TotalMaxMatchCount.

$ curl -s -XPOST -d '{"Q":"test","RepoIds":[11],"Opts":{"TotalMaxMatchCount":1,"NumContextLines":1}}' 'http://127.0.0.1:6090/api/search' | jq '.Result.Files | length'
11950
Edited by 🤖 GitLab Bot 🤖