Skip to content
代码片段 群组 项目
未验证 提交 fdcc0ab9 编辑于 作者: Siddharth Dungarwal's avatar Siddharth Dungarwal 提交者: GitLab
浏览文件

Update docs to use admin settings to update global search settings

上级 ea6c1784
No related branches found
No related tags found
无相关合并请求
......@@ -4,7 +4,7 @@
expanded: expanded_by_default?) do |c|
- c.with_description do
= _('Configure settings for global search.')
= link_to _('Learn more.'), help_page_path('user/search/index.md', anchor: 'global-search-scopes'), target: '_blank', rel: 'noopener noreferrer'
= link_to _('Learn more.'), help_page_path('user/search/index.md', anchor: 'disable-global-search-scopes'), target: '_blank', rel: 'noopener noreferrer'
- c.with_body do
= gitlab_ui_form_for @application_setting, url: general_admin_application_settings_path(anchor: 'js-global-search-settings'), html: { class: 'fieldset-form', id: 'global-search-settings' } do |f|
= form_errors(@application_setting)
......
......@@ -168,7 +168,7 @@ Set the limit to `0` to disable it.
### Search rate limit
> - [Changed](https://gitlab.com/gitlab-org/gitlab/-/merge_requests/104208) in GitLab 15.9 to include issue, merge request, and epic searches in the rate limit.
> - [Changed](https://gitlab.com/gitlab-org/gitlab/-/merge_requests/118525) in GitLab 16.0 to apply rate limits to [search scopes](../user/search/index.md#global-search-scopes) for authenticated requests.
> - [Changed](https://gitlab.com/gitlab-org/gitlab/-/merge_requests/118525) in GitLab 16.0 to apply rate limits to [search scopes](../user/search/index.md#disable-global-search-scopes) for authenticated requests.
This setting limits search requests as follows:
......
......@@ -55,28 +55,29 @@ To restrict `/search` to authenticated users only, do one of the following:
To restrict global search to authenticated users only,
enable the `ops` feature flag `block_anonymous_global_searches`.
## Global search scopes
## Disable global search scopes
DETAILS:
**Tier:** Free, Premium, Ultimate
**Offering:** GitLab Self-Managed
> - [Introduced](https://gitlab.com/gitlab-org/gitlab/-/merge_requests/68640) in GitLab 14.3.
> - [Introduced](https://gitlab.com/gitlab-org/gitlab/-/merge_requests/179688) in GitLab 17.9.
To improve the performance of your instance's global search, an administrator can limit the search scope
by disabling one or more [`ops` feature flags](../../development/feature_flags/_index.md#ops-type).
Prerequisites:
- You must have administrator access to the instance.
To improve the performance of your instance's global search,
you can disable one or more search scopes.
All global search scopes are enabled by default on GitLab Self-Managed instances.
| Scope | Feature flag | Description |
|----------------|------------------------------------|-------------------------------------------------------------------------------------------|
| Code | `global_search_code_tab` | When enabled, global search includes code. |
| Commits | `global_search_commits_tab` | When enabled, global search includes commits. |
| Epics | `global_search_epics_tab` | When enabled, global search includes epics. |
| 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. |
| Users | `global_search_users_tab` | When enabled, global search and command palette includes users. |
| Wiki | `global_search_wiki_tab` | When enabled, global search includes project and [group wikis](../project/wiki/group.md). |
To disable one or more global search scopes:
All global search scopes are enabled by default on self-managed instances.
1. On the left sidebar, at the bottom, select **Admin**.
1. Select **Settings > Search**.
1. Expand **Global search**.
1. Clear the checkboxes for the scopes you want to disable.
1. Select **Save changes**.
## Global search validation
......
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册