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.

7 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:

7 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
it would be not great, it is an indispensable feature

2 Likes

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 Like

+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?

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

1 Like

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.

2 Likes

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:

2 Likes

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

2 Likes

Due to gitlab rate limiting, we have now switched to this one that gets around the rate limit by waiting between calls: GitHub - ldbglobe/gitlab-finder: NodeJs CLI tools to search keywords in find across all your project

In case it is helpful to anyone

Breathtakingly pathetic that such elementary functionality doesn’t work.

Is this feature still not available in GitLab?