File Explorer search not working: how to fix it on Windows 11

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.

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 seeWhere to lookGo to
Can’t type in the search box, or nothing happens when you press EnterExplorer process or text inputFirst
No results for a file you know is thereSearch scope or index locationsFixes 1 and 4
Results stop at file names, words inside documents aren’t foundFile type settingsFix 5
Old or deleted files still show, new files are missingIndex out of date or damagedFixes 2 and 6
Search runs for minutes with a moving green barUnindexed location or index sizeFix 1 and the slow section
Search settings page is grayed out or says Indexing is not runningWindows Search serviceFixes 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:

  1. Press Ctrl + Shift + Esc to open Task Manager.
  2. On the Processes page, find Windows Explorer. If it’s missing, open any folder window first.
  3. Right-click it and select Restart. The taskbar disappears for a moment and comes back.
  4. 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 messageWhat it meansWhat to do
Indexing completeThe index is up to dateCheck which folders are included (Fix 4)
Indexing in progress. Search results might not be complete.New files are still being addedLeave the PC on and plugged in; it can take hours
Indexing is paused to conserve battery powerPaused on low batteryConnect the charger
Indexing is waiting for computer to become idleThe PC is too busyFind what’s using the disk or CPU
Indexing is pausedPaused from the settings pageIt resumes after 15 minutes, or restart the service
Indexing is not runningThe service isn’t startedSee Fix 3
Page grayed out, no status at allIndex files or settings damagedSee 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.

  1. Press Win + R, type services.msc and press Enter.
  2. Double-click Windows Search.
  3. Microsoft says it should show Status: Running and Startup type: Automatic (Delayed Start). If not, set the startup type, select Start and then OK.
  4. 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:

  1. In Settings > Privacy & security > Searching Windows, select Advanced indexing options to open the Indexing Options window.
  2. Select Modify.
  3. Expand the drive, tick the folder you want searched and select OK.
  4. 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:

  1. Open Indexing Options (Fix 4) and select Advanced.
  2. On the File Types tab, find the extension, for example pdf or docx.
  3. Under How should this file be indexed?, choose the option that indexes properties and file contents.
  4. 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:

  1. Open Settings > Privacy & security > Searching Windows > Advanced indexing options.
  2. In Indexing Options, select Advanced.
  3. 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.ps1 script 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.db in C:\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.

Official sources

How we write our guides: read our editorial policy.

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *