debian-mirror-gitlab/doc/user/search/advanced_global_search.md

74 lines
2.5 KiB
Markdown
Raw Normal View History

2020-10-24 23:57:45 +05:30
---
2021-01-03 14:25:43 +05:30
stage: Enablement
group: Global Search
2020-10-24 23:57:45 +05:30
info: "To determine the technical writer assigned to the Stage/Group associated with this page, see https://about.gitlab.com/handbook/engineering/ux/technical-writing/#designated-technical-writers"
type: reference
---
2020-11-24 15:15:51 +05:30
# Advanced Search **(STARTER)**
2019-07-31 22:56:46 +05:30
2020-04-22 19:07:51 +05:30
> - [Introduced](https://gitlab.com/gitlab-org/gitlab/-/merge_requests/109) in GitLab [Starter](https://about.gitlab.com/pricing/) 8.4.
2019-07-31 22:56:46 +05:30
2020-06-23 00:09:42 +05:30
NOTE: **GitLab.com availability:**
2020-11-24 15:15:51 +05:30
Advanced Search (powered by Elasticsearch) is enabled for Bronze and above on GitLab.com since 2020-07-10.
2019-07-31 22:56:46 +05:30
Leverage Elasticsearch for faster, more advanced code search across your entire
GitLab instance.
2020-05-24 23:13:21 +05:30
This is the user documentation. To install and configure Elasticsearch,
visit the [administrator documentation](../../integration/elasticsearch.md).
2019-07-31 22:56:46 +05:30
## Overview
2020-11-24 15:15:51 +05:30
The Advanced Search in GitLab is a powerful search service that saves
2019-07-31 22:56:46 +05:30
you time. Instead of creating duplicate code and wasting time, you can
2020-10-24 23:57:45 +05:30
now search for code within other projects that can help your own project.
2019-07-31 22:56:46 +05:30
2020-04-22 19:07:51 +05:30
GitLab leverages the search capabilities of [Elasticsearch](https://www.elastic.co/elasticsearch/) and enables it when
2019-07-31 22:56:46 +05:30
searching in:
- Projects
- Issues
- Merge requests
- Milestones
2020-10-24 23:57:45 +05:30
- Comments
- Code
- Commits
2019-07-31 22:56:46 +05:30
- Wiki
2020-10-24 23:57:45 +05:30
- Users
2019-07-31 22:56:46 +05:30
## Use cases
2020-11-24 15:15:51 +05:30
The Advanced Search can be useful in various scenarios.
2019-07-31 22:56:46 +05:30
### Faster searches
If you are dealing with huge amount of data and want to keep GitLab's search
2020-11-24 15:15:51 +05:30
fast, Advanced Search will help you achieve that.
NOTE: **Note:**
Between versions 12.10 and 13.4, Advanced Search response times have improved by 80%.
2019-07-31 22:56:46 +05:30
### 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.
2020-11-24 15:15:51 +05:30
![Advanced Search](img/advanced_global_search.png)
2019-07-31 22:56:46 +05:30
2020-11-24 15:15:51 +05:30
You can also use the [Advanced Search Syntax](advanced_search_syntax.md) which
2019-07-31 22:56:46 +05:30
provides some useful queries.
2020-04-22 19:07:51 +05:30
NOTE: **Note:**
2019-07-31 22:56:46 +05:30
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,
2020-11-24 15:15:51 +05:30
then the "Code" tab in the search result page will be served by the basic
2019-07-31 22:56:46 +05:30
search even if Elasticsearch is enabled.