---
title: "Reindex and cancel indexing"
description: "Sync a library right away with Reindex, learn which files get processed, and what happens to processed and unprocessed files when you cancel indexing"
canonical_url: "https://docs.ardge.com/en/knowledge/doclake/indexing/resync"
---
# Reindex and cancel indexing

> Sync a library right away with Reindex, learn which files get processed, and what happens to processed and unprocessed files when you cancel indexing

## Overview

**Reindex** runs a sync for the library right away, without waiting for the schedule. It doesn't process every file from scratch — only the files that need it:

| File | On reindex |
| --- | --- |
| New files | Indexed |
| Files whose size or modified time changed | Indexed again |
| Files that previously failed or weren't processed | Tried again |
| Indexed files with the same size and modified time | Not processed |
| Files deleted from the source | Removed from the library |
| Legacy Office files (.doc, .ppt, .xls) and audio and video files | Not processed if unchanged, and stay **Index Failed** |

**Cancel Indexing** stops the library's running and queued index tasks.

## What you'll learn

- Sync a library right away with **Reindex**
- Stop a running task with **Cancel Indexing**
- When to reindex

**Estimated time: about 3 minutes**, not counting indexing time

## Applies to

- DocLake 1.0.0 and later

## Before you begin

- Your account is a built-in **Admin**, or your role has **RW** permission on the **Library** page. Roles with **RO** permission can only view task records — they can't reindex or cancel indexing

## When to reindex

- Files on the NAS were just updated and you don't want to wait for the next scheduled sync
- The last sync **Failed** because the NAS couldn't be reached, and the NAS is back
- Files failed to index because the model service was briefly down, and the model is working again
- The schedule is turned off and you need to sync by hand

When you change the **Embedding Model**, DocLake reindexes every library automatically, so you don't need to click through each one.

## Step 1: Reindex

1. Go to the **Admin Center**, then **Data** → **Library**
2. Click the library to sync
3. Click **Reindex**

When it starts, the page shows "**Reindexing started**". While the task runs or waits in the queue, **Reindex** turns into **Cancel Indexing**.

![The Reindex button on the library page](https://docs.ardge.com/screenshots/knowledge/en/doclake/resync/step-1.webp)

<note>

**When the NAS can't be reached, the task fails right away:**

DocLake checks the NAS connection before it starts a task. If the NAS can't be reached, the task is recorded as **Failed** straight away, with no waiting or retrying. Fix the connection first — see [Connect a NAS shared folder as a data source](https://docs.ardge.com/en/knowledge/doclake/nas-data-source).

</note>

## Step 2: Follow the progress

- The top of the **Documents** tab shows "**Indexing N documents…**" with a percentage, plus the estimated time left when it can be calculated
- The **Index Tasks** tab lists this task, with **Trigger** shown as "**Manual (your name)**"

## Step 3: Cancel indexing (if needed)

1. On the library page, click **Cancel Indexing**
2. The page shows "**Indexing cancelled**"

What happens after you cancel:

- Queued tasks become **Cancelled** right away
- A running task becomes **Cancelling** first, then **Cancelled** once it wraps up
- Files that were processed successfully keep their results and can be searched
- Files not yet processed, or only partly processed, are recorded as **Cancelled** and processed in the next sync
- **Sync Schedule** isn't affected — the next scheduled sync runs as usual

## Troubleshooting

| Message | Likely cause | What to do |
| --- | --- | --- |
| `An indexing task is already in progress for this library.` | A task is already running or queued | Wait for the task to finish, or click **Cancel Indexing** first |
| `Unable to connect to <name> (<IP>). Check the connector status.` | The NAS can't be reached | Check the NAS and the network, then reindex |
| `Unable to sign in to <name> (<IP>). Check the connector credentials.` | The NAS rejected the username and password | Update the password in **Data Source Connector** |
| `Unable to start reindexing. Please try again later.` | The request didn't go through | Try again later |
| `Unable to cancel indexing. Please try again later.` | The request didn't go through | Try again later |
| Legacy Office files are still **Index Failed** after reindexing | The format isn't supported, and unchanged files aren't retried | Save them in the newer format — see [What do index task statuses mean, and what to do when indexing fails?](https://docs.ardge.com/en/knowledge/doclake/indexing/task-statuses) |

## Next steps

When the task ends, check the results on the **Index Tasks** tab — see [What do index task statuses mean, and what to do when indexing fails?](https://docs.ardge.com/en/knowledge/doclake/indexing/task-statuses)

## Related articles

- [Set a library's sync schedule](https://docs.ardge.com/en/knowledge/doclake/sync-schedule)
- [What do index task statuses mean, and what to do when indexing fails?](https://docs.ardge.com/en/knowledge/doclake/indexing/task-statuses)
- [Set up DocLake's model connection](https://docs.ardge.com/en/knowledge/doclake/model-connection)


## Sitemap

See the full [sitemap](https://docs.ardge.com/sitemap.md) for all pages.
