I had the same need recently. There's actually a nice IntelliJ plugin that does the job, it lets you search across multiple GitLab repos, even if they’re not part of the same project.
https://plugins.jetbrains.com/plugin/26095-gitlab-multi-repo-search