Search code across all projects

Is there a way I can do a code (content text) search across all projects/repositories in gitlab?
Looks like I can search for code only within a specific project.

This would be a nice feature.

8 Likes

Is there any interested in this at all? This is a core/critical feature for my company.
BTW: github does this with ease. Just sayin… :wink:

6 Likes

I have opened an issue about this here, https://gitlab.com/gitlab-org/gitlab-ce/issues/14597 and cc’ed some of our team members.

Feel free to add any more feedback or thoughts you have on the issue

1 Like

+1
it would be not great, it is an indispensable feature

1 Like

This will be implemented for only GitLab installation with Elasticsearch setup. See, https://gitlab.com/gitlab-org/gitlab-ee/issues/556

A tentative milestone of 8.12 i.e. Sep 22nd has been set

+1
any updates?

1 Like

+1
Why is this not already a feature?

+1

I couldn’t believe that I couldn’t find a way to search through all Gitlab repos. Searching led me here… more disbelief!

For those following along, check here: https://gitlab.com/gitlab-org/gitlab-ee/issues/556

The issue is closed, but I don’t see this feature implemented.
Am I missing something?

1 Like

Depends, this is a commercial feature, the free community edition does not have this.

So does that mean we need to create a new issue to get this implemented for gitlab.com?

My guess would be that on gitlab.com this feature is disabled as it would consume a lot of resources for the required ES instances.

We use sourcegraph.com . You just create a token on gitlab account, sourcegraph will mirror all your repositories and let you search all code.

1 Like

Indeed! Sourcegraph recently added GitLab support:

https://github.com/sourcegraph/about/blob/master/projects/sourcegraph-for-gitlab.md

Sourcegraph was also recently open-sourced :slight_smile:

1 Like

@Frontware Can we use the sourcegraph api to search through any public repository (gitlab/github). Please can you provide some example queries

1 Like