2020-07-16 08:09:22 -04:00
|
|
|
# Advanced Global Search **(STARTER)**
|
2019-05-05 09:07:20 -04:00
|
|
|
|
2020-04-06 08:10:44 -04:00
|
|
|
> - [Introduced](https://gitlab.com/gitlab-org/gitlab/-/merge_requests/109) in GitLab [Starter](https://about.gitlab.com/pricing/) 8.4.
|
2019-05-05 09:07:20 -04:00
|
|
|
|
2020-06-10 05:08:35 -04:00
|
|
|
NOTE: **GitLab.com availability:**
|
2020-07-16 08:09:22 -04:00
|
|
|
Advanced Global Search (powered by Elasticsearch) is enabled for Bronze and above on GitLab.com since 2020-07-10.
|
2019-05-05 09:07:20 -04:00
|
|
|
|
|
|
|
Leverage Elasticsearch for faster, more advanced code search across your entire
|
|
|
|
GitLab instance.
|
|
|
|
|
2020-04-22 08:09:29 -04:00
|
|
|
This is the user documentation. To install and configure Elasticsearch,
|
|
|
|
visit the [administrator documentation](../../integration/elasticsearch.md).
|
|
|
|
|
2019-05-05 09:07:20 -04:00
|
|
|
## Overview
|
|
|
|
|
|
|
|
The Advanced Global 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 teams that can help your own project.
|
|
|
|
|
2020-04-06 08:10:44 -04:00
|
|
|
GitLab leverages the search capabilities of [Elasticsearch](https://www.elastic.co/elasticsearch/) and enables it when
|
2019-05-05 09:07:20 -04:00
|
|
|
searching in:
|
|
|
|
|
|
|
|
- Projects
|
|
|
|
- Repositories
|
|
|
|
- Commits
|
|
|
|
- Issues
|
|
|
|
- Merge requests
|
|
|
|
- Milestones
|
|
|
|
- Notes (comments)
|
|
|
|
- Snippets
|
|
|
|
- Wiki
|
|
|
|
|
|
|
|
## Use cases
|
|
|
|
|
|
|
|
The Advanced Global Search can be useful in various scenarios.
|
|
|
|
|
|
|
|
### Faster searches
|
|
|
|
|
|
|
|
If you are dealing with huge amount of data and want to keep GitLab's search
|
|
|
|
fast, the Advanced Global Search will help you achieve that.
|
|
|
|
|
|
|
|
### 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.
|
|
|
|
|
|
|
|
![Advanced Global Search](img/advanced_global_search.png)
|
|
|
|
|
|
|
|
You can also use the [Advanced Syntax Search](advanced_search_syntax.md) which
|
|
|
|
provides some useful queries.
|
|
|
|
|
2020-04-06 08:10:44 -04:00
|
|
|
NOTE: **Note:**
|
2019-05-05 09:07:20 -04:00
|
|
|
Elasticsearch has only data for the default branch. That means that if you go
|
|
|
|
to the repository tree and switch the branch from the default to something else,
|
|
|
|
then the "Code" tab in the search result page will be served by the regular
|
|
|
|
search even if Elasticsearch is enabled.
|