Skip to content
代码片段 群组 项目
提交 fb12a545 编辑于 作者: Jon Glassman's avatar Jon Glassman
浏览文件

Merge branch 'search-topics' into 'master'

No related branches found
No related tags found
无相关合并请求
...@@ -17,23 +17,23 @@ Both types of search are the same, except when you are searching through code. ...@@ -17,23 +17,23 @@ Both types of search are the same, except when you are searching through code.
> [Introduced](https://gitlab.com/gitlab-org/gitlab/-/merge_requests/68640) in GitLab 14.3. > [Introduced](https://gitlab.com/gitlab-org/gitlab/-/merge_requests/68640) in GitLab 14.3.
To improve the performance of your instance's global search, a GitLab administrator To improve the performance of your instance's global search, an administrator can limit the search scope
can limit the search scope by disabling the following [`ops` feature flags](../../development/feature_flags/index.md#ops-type). by disabling one or more [`ops` feature flags](../../development/feature_flags/index.md#ops-type).
| Scope | Feature flag | Description | | Scope | Feature flag | Description |
|--|--|--| |----------------|------------------------------------|-------------------------------------------------------------------------------------------|
| Code | `global_search_code_tab` | When enabled, global search includes code. | | Code | `global_search_code_tab` | When enabled, global search includes code. |
| Commits | `global_search_commits_tab` | When enabled, global search includes commits. | | Commits | `global_search_commits_tab` | When enabled, global search includes commits. |
| Issues | `global_search_issues_tab` | When enabled, global search includes issues. | | Issues | `global_search_issues_tab` | When enabled, global search includes issues. |
| Merge requests | `global_search_merge_requests_tab` | When enabled, global search includes merge requests. | | Merge requests | `global_search_merge_requests_tab` | When enabled, global search includes merge requests. |
| Users | `global_search_users_tab` | When enabled, global search includes users. | | Users | `global_search_users_tab` | When enabled, global search includes users. |
| Wiki | `global_search_wiki_tab` | When enabled, global search includes project and [group wikis](../project/wiki/group.md). | | Wiki | `global_search_wiki_tab` | When enabled, global search includes project and [group wikis](../project/wiki/group.md). |
All global search scopes are enabled by default on self-managed instances. All global search scopes are enabled by default on self-managed instances.
## Global search validation ## Global search validation
Global search ignores and logs as abusive any search with: Global search ignores and logs as abusive any search that includes:
- Fewer than two characters - Fewer than two characters
- A term longer than 100 characters (URL search terms must not exceed 200 characters) - A term longer than 100 characters (URL search terms must not exceed 200 characters)
...@@ -47,6 +47,19 @@ Global search only flags with an error any search that includes more than: ...@@ -47,6 +47,19 @@ Global search only flags with an error any search that includes more than:
- 4096 characters - 4096 characters
- 64 terms - 64 terms
## Autocomplete suggestions
As you type in the search box, autocomplete suggestions are displayed for:
- [Projects](#search-for-a-project-by-full-path) and groups
- Users
- Help pages
- Project features (for example, milestones)
- Settings (for example, user settings)
- Recently viewed merge requests
- Recently viewed issues and epics
- [GitLab Flavored Markdown references](../markdown.md#gitlab-specific-references) for issues in a project
## Search in all GitLab ## Search in all GitLab
To search in all GitLab: To search in all GitLab:
...@@ -177,28 +190,3 @@ in your browser. To run a search from history: ...@@ -177,28 +190,3 @@ in your browser. To run a search from history:
- For merge requests, on the left sidebar, select **Code > Merge requests**. Above the list, to the left of the search box, select **Recent searches**. - For merge requests, on the left sidebar, select **Code > Merge requests**. Above the list, to the left of the search box, select **Recent searches**.
1. From the dropdown list, select a search. 1. From the dropdown list, select a search.
## Remove search filters
Individual filters can be removed by selecting the filter's (x) button or backspacing. The entire search filter can be cleared by selecting the search box's (x) button or via <kbd></kbd> (Mac) + <kbd></kbd>.
To delete filter tokens one at a time, the <kbd></kbd> (Mac) / <kbd>Control</kbd> + <kbd></kbd> keyboard combination can be used.
## Autocomplete suggestions
As you type in the search box, autocomplete suggestions are displayed for:
- [Projects](#search-for-a-project-by-full-path) and groups
- Users
- Help pages
- Project features (for example, milestones)
- Settings (for example, user settings)
- Recently viewed merge requests
- Recently viewed issues and epics
- [GitLab Flavored Markdown references](../markdown.md#gitlab-specific-references) for issues in a project
## Search settings
You can search inside a Project, Group, Administrator, or User's settings by entering
a search term in the search box located at the top of the page. The search results
appear highlighted in the sections that match the search term.
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册