> For the complete documentation index, see [llms.txt](https://docs.sonarsource.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.sonarsource.com/sonarqube-server/10.7/server-upgrade-and-maintenance/maintenance/reindexing.md).

# Reindexing

Starting SonarQube Server after an upgrade or after a restore from a backup triggers a rebuild of the Elasticsearch indexes. This page is for SonarQube Server 10.7.

{% hint style="info" %}
**For AI agents:** You're in the SonarQube Server 10.7 documentation. For a list of all 10.7 pages, see the [SonarQube Server 10.7 page index](https://3272878703-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FI10pmJWeVVXYITlQJllp%2Fuploads%2FnEeIaIlHm7ezec5g9iHc%2Fsonarqube-server-10.7-llms.txt?alt=media). For the whole site, see the [page index](https://docs.sonarsource.com/llms.txt) or the [full text](https://docs.sonarsource.com/llms-full.txt). For another version, replace 10.7 in the URL with that version. The [latest version](https://docs.sonarsource.com/sonarqube-server/) has no version number in its URL.
{% endhint %}

Starting SonarQube Server [Upgrade roadmap](/sonarqube-server/10.7/server-upgrade-and-maintenance/upgrade/upgrade-the-server/roadmap.md) or after a [Backup and restore](/sonarqube-server/10.7/server-upgrade-and-maintenance/maintenance/backup-and-restore.md) triggers a rebuild of the Elasticsearch indexes.

## Project, application, and portfolio availability <a href="#rebuild-of-elasticsearch-indexes" id="rebuild-of-elasticsearch-indexes"></a>

Most features are available during reindexing (for example, you can already analyze your projects), but some only become available when the process is complete:

* Project issues and security hotspots: Available, but some filters and the ability to add tags become available only when reindexing is complete.
* Security reports: Available when reindexing is complete.
* Applications and portfolios: Issues, security hotspots, and security reports become available once all their associated projects are reindexed.
* The global Issues page is unavailable until all projects are reindexed.

SonarQube Server uses analysis dates to determine which projects to prioritize during reindexing. Your projects with the most recent analysis dates are the first to become fully available in the UI.

Administrators can track the full reindexing progress:

* within the banner displayed in SonarQube Server
* in the [Background tasks](/sonarqube-server/10.7/analyzing-source-code/background-tasks.md)

## Running analyses during reindexing <a href="#running-analyses-during-reindexing" id="running-analyses-during-reindexing"></a>

Reindexing starts once SonarQube Server is up and running. You can run analyses on your projects on the CI side while indexes are being rebuilt. The processing of analysis results takes priority over reindexing tasks, so your SonarQube Server instance is effectively operational.

Administrators can check the progress of these analyses in **Administration** > **Projects** > **Background tasks**.

## Quality gate timeout <a href="#quality-gate-timeout" id="quality-gate-timeout"></a>

When calculating the quality gate of a project that is actively being indexed, SonarQube Server will finish indexing to allow computation to complete before returning quality gate status. If the indexing does not finish by the Quality Gate timeout setting, then the Quality Gate will time out.

## Forcing an Elasticsearch redindex <a href="#forcing-es-reindex" id="forcing-es-reindex"></a>

You can trigger a full Elasticsearch reindex. During the reindex, SonarQube Server will detect out-of-sync indices and correct them.

{% hint style="warning" %}
Full Elasticsearch reindex can be quite lengthy depending on the size of your instance.
{% endhint %}

<details>

<summary>On the SonarQube Server (Developer Edition, Enterprise Edition) or SonarQube Community Build instance</summary>

1. Stop the server.
2. Remove the contents of the \<sonarqubeHome>/data/es8 directory where \<sonarqubeHome>:
   * For a ZIP installation: is the location where the SonarQube Server distribution has been unzipped.
   * For a Docker installation: is the installation directory of SonarQube Server within your container. This path is stored in the SONARQUBE\_HOME environment variable.
3. Start the server.

</details>

<details>

<summary>On the SonarQube Server cluster (Data Center Edition)</summary>

1. Stop the cluster as follows: stop first the application nodes and then the search nodes.
2. On each search node, remove the contents of the \<sonarqubeHome>/data/es8 directory where \<sonarqubeHome>:
   * For a ZIP installation: is the location where the SonarQube Server distribution has been unzipped.
   * For a Docker installation: is the installation directory of SonarQube Server within your container. This path is stored in the SONARQUBE\_HOME environment variable.
3. Start your cluster as follows: start first the search nodes and then the application nodes.

</details>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.sonarsource.com/sonarqube-server/10.7/server-upgrade-and-maintenance/maintenance/reindexing.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
