How to reindex Gitlab Advanced_search ===================================== Published : 1 January 2025 Reading : 1 min Tags : gitlab URL : https://ctrl-find.nl/posts/gitlab_reindex/ Plain text : https://ctrl-find.nl/posts/gitlab_reindex/index.txt ------------------------------------------------------------ ## 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; ```bash 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; ```bash 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; ```bash 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. ------------------------------------------------------------ NAVIGATION [index] https://ctrl-find.nl/posts/index.txt [next >>] How to do a Gitlab Major version upgrade https://ctrl-find.nl/posts/gitlab_upgrade/index.txt ------------------------------------------------------------ CTRL-Find — Debugging all systems https://ctrl-find.nl/