This tutorial will show you how to manually reset and rebuild the search index for accurate search results in Windows 11.
Indexing the content of your PC helps you get faster results when your searching it for files, emails, or other local content.
The search index only includes your selected locations by default. These locations can be filtered for what file types (extensions), file properties, and file contents you want indexed.
You can choose to use Classic or Enhanced search indexing mode for where your PC will search for files.
The index uses the Windows Search service and runs as the Searchindexer.exe process in the background. The index will automatically rebuild and update for changes made to the included locations since the last index rebuild to increase search result accuracy.
By default, the search indexer backoff feature will reduce indexing speed while rebuilding the index when there is user activity, and will automatically continue at full speed when no user activity is detected.
If you are getting search results that are missing, no longer valid, or incorrect, then the search index may not be up to date. You can rebuild the index to force it to update now. You can also reset search index locations to default before rebuilding the search index.
You must be signed in as an administrator to reset and/or rebuild the index.
- Option One: Rebuild Search Index in Indexing Options
- Option Two: Rebuild Search Index using BAT file
- Option Three: Reset and Rebuild Search Index using BAT file
Starting with Windows 11 build 26200.5641 (Dev 24H2) and build 26120.4250 (Beta 24H2), Microsoft is reorganizing Windows Search settings under Settings > Privacy & security under a “Search permissions” settings page and a “Searching Windows” settings page. Microsoft is beginning to roll out a change that brings those two settings pages together so you can easily access to all the Windows Search settings under a single settings page via Settings > Privacy & security > Search. The page is refreshed with a new modern visual for you to clearly browse the settings and control your experiences inside Windows Search, with the items listed in a better order.
1 Open Settings (Win+I).
2 Click/tap on Privacy & security on the left side, and click/tap on Searching Windows on the right side. (see screenshot below)
3 Click/tap on Advanced indexing options under Related settings. (see screenshot below)
4 You can now close Settings if you like.
5 Click/tap on Advanced. (see screenshot below)
6 Click/tap on Rebuild. (see screenshot below)
7 Click/tap on OK to confirm. (see screenshot below)
8 Indexing will now be in progress. (see screenshot below)
Rebuilding the index might take a long time to complete. If needed, you can click/tap on Pause to stop rebuilding the index.
9 When indexing has completed, click/tap on Close. (see screenshot below)
1 Click/tap on the Download button below to download the file below.
(Content of BAT file for reference)
@echo off
sc config wsearch start= disabled
net stop wsearch
del "%ProgramData%\Microsoft\Search\Data\Applications\Windows\Windows.db"
del "%ProgramData%\Microsoft\Search\Data\Applications\Windows\Windows-gather.db"
:wsearch
sc config wsearch start= delayed-auto
net start wsearch
IF NOT %ERRORLEVEL%==0 (goto :wsearch) ELSE goto :END
:END
2 Save the ZIP file to your desktop.
3 Unblock the ZIP file.
4 Extract the BAT file from the ZIP file.
5 Right click or press and hold on the .bat file, and click/tap on Run as administrator.
6 When prompted by UAC, click/tap on Yes to approve.
7 The search index will now start to rebuild in the background.
This option will reset search index locations to default, and then rebuild the search index.
1 Click/tap on the Download button below to download the file below.
(Content of BAT file for reference)
@echo off
sc config wsearch start= disabled
net stop wsearch
REG ADD "HKLM\SOFTWARE\Microsoft\Windows Search" /v SetupCompletedSuccessfully /t REG_DWORD /d 0 /f
del "%ProgramData%\Microsoft\Search\Data\Applications\Windows\Windows.db"
del "%ProgramData%\Microsoft\Search\Data\Applications\Windows\Windows-gather.db"
:wsearch
sc config wsearch start= delayed-auto
net start wsearch
IF NOT %ERRORLEVEL%==0 (goto :wsearch) ELSE goto :END
:END
2 Save the ZIP file to your desktop.
3 Unblock the ZIP file.
4 Extract the BAT file from the ZIP file.
5 Right click or press and hold on the .bat file, and click/tap on Run as administrator.
6 When prompted by UAC, click/tap on Yes to approve.
7 The search index will now start to rebuild in the background.
That's it,
Shawn Brink