Search code across all projects


#1

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.


#3

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:


#4

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


#5

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


#6

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


#7

+1
any updates?


#8

+1
Why is this not already a feature?


#9

+1

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


#10

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


#11

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


#12

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


#13

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


#14

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.


#15

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


#16

Indeed! Sourcegraph recently added GitLab support:

Sourcegraph was also recently open-sourced :slight_smile: