Quick answer: File Explorer’s search box relies on the Windows Search index. When it finds nothing, finds only some files or crawls, restart Windows Explorer from Task Manager first. Then open Settings > Privacy & security > Searching Windows and check that indexing says Indexing complete and that the folder you search is an indexed location. If the status looks wrong or files you know exist never show up, rebuild the index from Advanced indexing options > Advanced > Rebuild and give it time to finish. If the box won’t accept typing at all, restart Explorer and see our guide to the Windows search bar.
In this guide
- Match your symptom
- First: restart File Explorer
- Fix 1: Search from the right folder
- Fix 2: Read the indexing status
- Fix 3: Check the Windows Search service
- Fix 4: Add the missing folder to the index
- Fix 5: Search inside files, not just names
- Fix 6: Rebuild the search index
- Fix 7: Run the search troubleshooter
- Fix 8: Updates, system files and a search reset
- Search is slow or stuck on Working on it
- Related guides
Applies to: the search box at the top right of File Explorer in Windows 11. Windows 10 uses the same index under Settings > Search > Searching Windows. If your problem is the search box on the taskbar or in the Start menu rather than inside a folder window, our guide on not being able to type in the Windows search bar covers that box. For Explorer windows that freeze whatever you do, start with File Explorer not responding.
Match your symptom
Find the line that matches what you see and start there.
| What you see | Where to look | Go to |
|---|---|---|
| Can’t type in the search box, or nothing happens when you press Enter | Explorer process or text input | First |
| No results for a file you know is there | Search scope or index locations | Fixes 1 and 4 |
| Results stop at file names, words inside documents aren’t found | File type settings | Fix 5 |
| Old or deleted files still show, new files are missing | Index out of date or damaged | Fixes 2 and 6 |
| Search runs for minutes with a moving green bar | Unindexed location or index size | Fix 1 and the slow section |
| Search settings page is grayed out or says Indexing is not running | Windows Search service | Fixes 3 and 6 |
First: restart File Explorer
As general guidance, File Explorer, the taskbar and the desktop run in one process, so a stuck search box may come back after a restart of that process:
- Press Ctrl + Shift + Esc to open Task Manager.
- On the Processes page, find Windows Explorer. If it’s missing, open any folder window first.
- Right-click it and select Restart. The taskbar disappears for a moment and comes back.
- Open a folder, click in the search box (or press Ctrl + E or F3) and try again.
If you still can’t type in the box but other apps accept text, the text input service may be the cause rather than the index. The ctfmon steps in our search bar typing guide apply to File Explorer’s box as well.
Fix 1: Search from the right folder
As general guidance, File Explorer searches the folder that’s open and the folders inside it, nothing more. A search started in Downloads won’t find a file saved in Documents. Open This PC or the drive that holds the file before you search, or pick the parent folder if you know roughly where it is.
Location matters for speed too. Microsoft’s Search indexing in Windows page lists File Explorer as one of the apps that uses the index. When you search a folder that isn’t indexed, such as a second drive, a USB stick or a network share, Explorer may have to open every file in turn, which can take minutes and still miss content. Adding the location to the index (Fix 4) is the lasting fix for local drives.
If you search for a file name, a part of the name is enough. As general guidance, putting name: in front of the term limits the search to file names, which can cut down noise when a word also appears inside many documents.
Fix 2: Read the indexing status
Open Start > Settings > Privacy & security > Searching Windows. The top of the page shows the indexing status and the number of items indexed. Microsoft’s Windows Search performance article explains what each message means. The ones that matter most for File Explorer search:
| Status message | What it means | What to do |
|---|---|---|
| Indexing complete | The index is up to date | Check which folders are included (Fix 4) |
| Indexing in progress. Search results might not be complete. | New files are still being added | Leave the PC on and plugged in; it can take hours |
| Indexing is paused to conserve battery power | Paused on low battery | Connect the charger |
| Indexing is waiting for computer to become idle | The PC is too busy | Find what’s using the disk or CPU |
| Indexing is paused | Paused from the settings page | It resumes after 15 minutes, or restart the service |
| Indexing is not running | The service isn’t started | See Fix 3 |
| Page grayed out, no status at all | Index files or settings damaged | See Fix 6 and Fix 8 |
Microsoft also lists an Index is performing maintenance status and says it can take up to 30 minutes on a slow PC. Because write problems in the index can come before a drive failure, the same article advises checking the system drive and backing up your files when you see it.
If the item count looks far too low for your files, the folder you need may not be included; Fix 4 shows how to add it. The article puts the point where performance may suffer at around 400,000 items and the indexer’s limit at about 1 million.
Fix 3: Check the Windows Search service
The index is built by the Windows Search service (service name wsearch, process SearchIndexer.exe). As general guidance, if it isn’t running, File Explorer may fall back to a slow scan of every file.
- Press Win + R, type
services.mscand press Enter. - Double-click Windows Search.
- Microsoft says it should show Status: Running and Startup type: Automatic (Delayed Start). If not, set the startup type, select Start and then OK.
- If it’s already running, right-click it and select Restart.
Microsoft notes that the service pauses during a Windows upgrade, so wait about five minutes after one before you judge it. It also says some antivirus and “optimize your PC” tools turn the service off; if you use one, check its settings so it doesn’t disable search again.
Microsoft’s Fix problems in Windows Search article adds one more service to try: right-click Windows Font Cache Service in the same console, select Stop, try a search, then start the service again.
Fix 4: Add the missing folder to the index
On the Searching Windows page, Find my files has two modes. Microsoft says the default Classic mode indexes the Documents, Pictures and Music folders and the desktop, while Enhanced indexes the whole PC, including all user folders, and may use more system resources.
If your files live somewhere else, for example in D:\Projects, you can add only that folder instead of switching to Enhanced:
- In Settings > Privacy & security > Searching Windows, select Advanced indexing options to open the Indexing Options window.
- Select Modify.
- Expand the drive, tick the folder you want searched and select OK.
- Wait until the status returns to Indexing complete, then search again from that folder.
The same page has Add an excluded folder. As general guidance, check that list too: a folder you excluded in the past, or one excluded by work policy, won’t show up in results until you remove it from the list.
As general guidance, files in a OneDrive folder that exist only online may still appear by name, but their contents may not be searchable until the file is downloaded. Mapped network drives depend on the server’s own indexing, which you may not control.
Fix 5: Search inside files, not just names
Microsoft’s indexing page says Windows indexes file names and paths by default, and the contents of text files. Other file types can be set to properties only, which makes them findable by name but not by the words inside. To check a type:
- Open Indexing Options (Fix 4) and select Advanced.
- On the File Types tab, find the extension, for example
pdfordocx. - Under How should this file be indexed?, choose the option that indexes properties and file contents.
- Select OK and Close. Rebuild the index (Fix 6) so files already indexed are read again.
Microsoft notes that indexing fewer contents keeps the index smaller but can make some files harder to find.
For folders outside the index, File Explorer has its own setting. As general guidance, open See more (…) > Options in File Explorer, go to the Search tab and look at Always search file names and contents. It makes searches in unindexed folders slower, so leave it off unless you need it.
Fix 6: Rebuild the search index
A rebuild throws away the current index and reads every included location again. It’s the step to use when results include files you deleted, miss files you just saved, or the status keeps showing errors. Microsoft gives this path for Windows 11:
- Open Settings > Privacy & security > Searching Windows > Advanced indexing options.
- In Indexing Options, select Advanced.
- Select Rebuild and confirm with OK.
Microsoft says to allow up to 24 hours for the rebuild, and the indexing page says the first run takes up to a couple of hours on its own. Search results stay incomplete until the status reads Indexing complete again, so keep the PC on and plugged in rather than judging the fix after a few minutes.
Before you delete anything: for a settings page that stays grayed out, Microsoft’s performance article goes further: delete the contents of C:\ProgramData\Microsoft\Search\Data and then refresh Windows. Treat this as a last resort after the other fixes, and back up your files first.
Fix 7: Run the search troubleshooter
Microsoft’s Fix problems in Windows Search article says Windows runs a search troubleshooter by itself when it detects a problem, and that it resets search to its default settings. To start it yourself, the article gives this command for a Command Prompt window:
msdt.exe -ep WindowsHelp id SearchDiagnostic
Select the problems that match, such as files not appearing in results, and let it try a repair. As general guidance, Microsoft has been retiring the older msdt troubleshooters in Windows 11, so this command may not open on newer builds. In that case, look for the Get Help troubleshooter or the troubleshooting link in the Indexing Options window.
The same article suggests ending the search process: in Task Manager, open Details, right-click SearchHost.exe, select End task and confirm. It starts again the next time you search. As general guidance, this process mainly serves the taskbar search box, so for File Explorer the Explorer restart and the service restart matter more.
Fix 8: Updates, system files and a search reset
If the index looks healthy but File Explorer search still misbehaves, the cause may sit in Windows itself. Work through these in order:
- Install updates: open Settings > Windows Update, select Check for updates and restart if asked. Microsoft lists this as a fix for search problems.
- Repair system files: as general guidance, run DISM and then SFC from an administrator terminal. Our guide on running sfc /scannow explains the commands and how to read the result.
- Reset Windows Search: Microsoft offers a
ResetWindowsSearchBox.ps1script for Windows 11. It needs administrator rights and a temporary change to the PowerShell execution policy, which the article walks through; set the policy back when the script reports Done. Microsoft says the reset doesn’t affect your files. - Test another account: Microsoft’s article uses a new user account to check whether search works there. If it does, the problem may be tied to your profile, and the article’s last step (re-registering the search package) applies. That step edits the registry, so back it up first.
Search is slow or stuck on Working on it
A slow search may have two sources: the folder isn’t indexed (Fix 1 and Fix 4), or the index is too big for the PC. Microsoft’s performance article says size depends on the number of items and on file size, and recommends these steps:
- Exclude folders you never search, such as code repositories, virtual machine folders or folders with thousands of tiny files, through Add an excluded folder or the Modify list.
- Keep more than 1 GB free on the system drive. Microsoft puts the index at about 10 percent of the size of the indexed content.
- Check the size of the index database: right-click
Windows.dbinC:\ProgramData\Microsoft\Search\Data\Applications\Windows, select Properties and read Size on disk, which Microsoft says is more accurate than the size File Explorer shows. - Rebuild after changing locations (Fix 6), so the index reflects the new settings.
If Outlook is installed, its mailbox shares the same index. Microsoft says very large mailboxes may slow the indexer and suggests a shorter mail sync window. Our Outlook search guide covers the Outlook side. If the whole PC stalls while indexing, see our guide to 100% disk usage in Windows 11 to find what else is busy.
Related guides
- Can’t type in the Windows search bar: 7 fixes for Windows 11 and 10
- File Explorer not responding in Windows 11: how to fix it
- How to run sfc /scannow in Windows 11 and 10 (and read the results)
- 100% disk usage on Windows 11: how to find the cause and fix it
- Outlook search not working: how to fix it on Windows
Leave a Reply