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

Add more indexing details to Zoekt docs

上级 7ca2b2a1
No related branches found
No related tags found
无相关合并请求
...@@ -65,6 +65,21 @@ To enable [exact code search](../../user/search/exact_code_search.md) in GitLab: ...@@ -65,6 +65,21 @@ To enable [exact code search](../../user/search/exact_code_search.md) in GitLab:
1. Select the **Enable indexing for exact code search** and **Enable exact code search** checkboxes. 1. Select the **Enable indexing for exact code search** and **Enable exact code search** checkboxes.
1. Select **Save changes**. 1. Select **Save changes**.
## Check indexing status
Prerequisites:
- You must have administrator access to the instance.
Indexing performance depends on the CPU and memory limits on the Zoekt indexer nodes.
To check indexing status, in the Rails console, run the following command:
```ruby
Search::Zoekt::Index.group(:state).count
Search::Zoekt::Repository.group(:state).count
Search::Zoekt::Task.group(:state).count
```
## Delete offline nodes automatically ## Delete offline nodes automatically
Prerequisites: Prerequisites:
...@@ -97,6 +112,13 @@ To index all root namespaces automatically: ...@@ -97,6 +112,13 @@ To index all root namespaces automatically:
1. Select the **Index root namespaces automatically** checkbox. 1. Select the **Index root namespaces automatically** checkbox.
1. Select **Save changes**. 1. Select **Save changes**.
When you enable this setting, GitLab creates indexing tasks for all projects in:
- All groups and subgroups
- Any new root namespace
After a project is indexed, GitLab creates only incremental indexing when a repository change is detected.
When you disable this setting: When you disable this setting:
- Existing root namespaces remain indexed. - Existing root namespaces remain indexed.
......
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册