Skip to content
  • Home
  • About
  • No Access
  • Privacy Policy
Bits of .NET
Bits of .NET
  • Asp.Net Core
  • C#
  • SQL
  • JavaScript
  • CSS
  • About
  • ErcanOPAK.com
  • No Access
  • Privacy Policy

Bits of .NET

Daily micro-tips for C#, SQL, performance, and scalable backend engineering.

  • Asp.Net Core
  • C#
  • SQL
  • JavaScript
  • CSS
  • About
  • ErcanOPAK.com
  • No Access
  • Privacy Policy
Windows

Windows 11: Fix File Explorer’s Search Box Returning Zero Results for Files You Know Exist Because the Indexer’s Database Got Marked Corrupt and Quietly Stopped Rebuilding

- 11.11.26 - ErcanOPAK

🪟 Windows 11: Fix File Explorer’s Search Box Returning Zero Results for Files You Know Exist Because the Indexer’s Database Got Marked Corrupt and Quietly Stopped Rebuilding

Windows Search relies on the Windows Search indexer maintaining a database of file metadata and content so File Explorer’s search box can answer instantly instead of scanning the disk live on every keystroke. That database can get marked corrupt by an improper shutdown, a disk error, or an interrupted update, and when it does, the indexer’s recovery behavior is to simply stop serving results from the broken database rather than silently falling back to a live scan — so a search for a file you know is sitting right there returns nothing at all, with no error message explaining why.

🔎 The Problem

C:\Projects> dir /s invoice_2026.pdf
...\Documents\Finance\invoice_2026.pdf   <- file is definitely there

File Explorer search box, same folder, same filename typed exactly:
"No items match your search."

services.msc -> Windows Search -> Status: Running
(service is running, but its index database is the one that's broken)

✅ Fix: Rebuild the Index Instead of Waiting for It to Repair Itself

  • Open Indexing Options and use Advanced > Troubleshooting > Rebuild, which deletes and fully regenerates the index database from scratch instead of trying to repair whatever marked it corrupt in the first place.
  • A full rebuild can take hours on a large drive, so in the meantime search a specific folder path directly rather than relying purely on indexed results — Explorer still falls back to a live, slower scan in that case.
  • If rebuilds keep failing or getting marked corrupt again shortly after finishing, check Event Viewer’s Windows Search log for repeated errors pointing at a specific disk or folder — a failing drive or permission issue can corrupt the index again every time it finishes rebuilding.

🚨 Why This Is Dangerous

“No items match your search” reads exactly like “this file doesn’t exist,” which can send you down the path of assuming a file was deleted, synced away, or never saved — when it’s sitting untouched in the folder the whole time, just invisible to a search index that silently stopped working.

File Explorer’s search box answers from an index, not from the disk — when that index breaks, it doesn’t tell you it’s broken, it just tells you nothing’s there.

— PC Power User

Related posts:

Windows 11: Fix a Virtual Desktop Switch That Silently Resets Every Open Window Back to Its Default ...

Windows 11: Fix a Virtual Desktop Switch That Silently Resets Every Open Window Back to Its Default ...

Windows 11: Fix a Clock That Keeps Drifting Out of Sync With the Real Time

Windows 11: Fix a Clock That Keeps Drifting Out of Sync With the Real Time

Windows 11: Use Clipboard History for Multiple Copies

Windows 11: Use Clipboard History for Multiple Copies

Views: 6

Post navigation

HTML5: Fix a details Element’s Open or Closed State Resetting on Every Re-render Because Client-Side Code Replaced the Element Instead of Toggling Its open Attribute
The AI Prompt That Takes a Flaky Test’s Last Ten CI Runs and Narrows Down Exactly Which Assertion Inside It Is Actually Nondeterministic

Leave a Reply Cancel reply

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

November 2026
M T W T F S S
 1
2345678
9101112131415
16171819202122
23242526272829
30  
« Oct    

Most Viewed Posts

  • How to make theater mode the default for Youtube (1,055)
  • Get the User Name and Domain Name from an Email Address in SQL (980)
  • How to add default value for Entity Framework migrations for DateTime and Bool (977)
  • Get the First and Last Word from a String or Sentence in SQL (857)
  • How to select distinct rows in a datatable in C# (853)
  • How to enable, disable and check if Service Broker is enabled on a database in SQL Server (653)
  • Add Constraint to SQL Table to ensure email contains @ (608)
  • Average of all values in a column that are not zero in SQL (570)
  • How to use Map Mode for Vertical Scroll Mode in Visual Studio (546)
  • Find numbers with more than two decimal places in SQL (475)

Recent Posts

  • C#: Fix a ConditionalWeakTable Entry Vanishing Too Soon
  • Docker: Fix a Stale COPY Layer After Editing .dockerignore
  • Photoshop: Fix a Pattern Overlay Scaling Wrong on a High-DPI File
  • SQL Server: Fix a Computed Column Index Skipped by Implicit Cast
  • HTML5: Fix a required Input Inside a Hidden Tab Blocking Submit
  • SQL Server: Fix ROW_NUMBER Ties Reordering Between Identical Runs
  • C#: Fix an Enum HasFlag Returning True for the Zero Value
  • WordPress: Fix Featured Images Vanishing After a CDN Migration
  • Photoshop: Fix Content-Aware Fill Smearing a Repeating Pattern
  • Asp.Net Core: Fix Antiforgery Tokens Rejected Behind a Reverse Proxy

Most Viewed Posts

  • How to make theater mode the default for Youtube (1,055)
  • Get the User Name and Domain Name from an Email Address in SQL (980)
  • How to add default value for Entity Framework migrations for DateTime and Bool (977)
  • Get the First and Last Word from a String or Sentence in SQL (857)
  • How to select distinct rows in a datatable in C# (853)

Recent Posts

  • C#: Fix a ConditionalWeakTable Entry Vanishing Too Soon
  • Docker: Fix a Stale COPY Layer After Editing .dockerignore
  • Photoshop: Fix a Pattern Overlay Scaling Wrong on a High-DPI File
  • SQL Server: Fix a Computed Column Index Skipped by Implicit Cast
  • HTML5: Fix a required Input Inside a Hidden Tab Blocking Submit

Social

  • ErcanOPAK.com
  • GoodReads
  • LetterBoxD
  • Linkedin
  • The Blog
  • Twitter
© 2026 Bits of .NET | Built with Xblog Plus free WordPress theme by wpthemespace.com