Zoekt multi node search causes missing results

Summary

I believe that multi-node requests are causing missing results/projects. This is related to this bug report #420920 (comment 2204093481).

Steps to reproduce

[ gprd ] production> projects = Projects.where(id: project_ids)
[ gprd ] production> projects.count
=> 429
[ gprd ] production> ::Search::Zoekt::RoutingService.execute(projects).values.flatten.count
=> 84

What is the current bug behavior?

Multi node search doesn't return all projects/results.

What is the expected correct behavior?

It should return all projects/results

Relevant logs and/or screenshots

Possible fixes

Assignee Loading
Time tracking Loading