Advanced Search
- Introduced in GitLab 8.4.
- Moved to GitLab Premium in 13.9.
Leverage Elasticsearch for faster, more advanced code search across your entire GitLab instance.
This is the user documentation. To install and configure Elasticsearch, visit the administrator documentation.
Overview
The Advanced Search in GitLab is a powerful search service that saves you time. Instead of creating duplicate code and wasting time, you can now search for code within other projects that can help your own project.
GitLab leverages the search capabilities of Elasticsearch and enables it when searching in:
- Projects
- Issues
- Merge requests
- Milestones
- Comments
- Code
- Commits
- Wiki
- Users
Use cases
The Advanced Search can be useful in various scenarios.
Faster searches
Advanced Search is based on Elasticsearch, which is a purpose built full text search engine that can be horizontally scaled so that it can provide search results in 1-2 seconds in most cases.
Promote innersourcing
Your company may consist of many different developer teams each of which has their own group where the various projects are hosted. Some of your applications may be connected to each other, so your developers need to instantly search throughout the GitLab instance and find the code they search for.
Searching globally
Just use the search as before and GitLab will show you matching code from each project you have access to.
You can also use the Advanced Search Syntax which provides some useful queries.