How to reindex Gitlab Advanced_search
A quick way to reindex search
- Sebastiaan
- 1 min read
Advanced Search page Gitlab
Go to the Admin page in Gitlab > Settings > Advanced Search Expand Advanced Search to see the configuration.
Disabling feature
Go to the Advanced search page in Gitlab De-select the following options;
- Elasticsearch indexing
- Search with Elasticsearch enabled
Recreate indices
Login and connect to the gitlab instance. We can remove the current indices and recreate them as new with following command;
gitlab-rake gitlab:elastic:recreate_index
Enabling indexing
Go to the Advanced search page in Gitlab. We enable the Elasticsearch indexing option and Press “Index all projects” button. In the background ElasticSearch will be populated with information The state can be found with following command;
gitlab-rake gitlab:elastic:info
Enabling Search capability
When the information from the command above said 0 in queue, we can enable the search option. Go to the Advanced search page in Gitlab. Select the Search with Elasticsearch enabled option and verifiy with following command;
gitlab-rake gitlab:elastic:info
Now both Indexing and Search enabled should be on “yes”
Check GUI
When we go to the gitlab page and search for something the Code and Merge Request options should be visible.
- Tags:
- Advanced_search
- Gitlab
- How To