Why Windows Search doesn't find text inside your files, and how to fix it

The usual reasons Windows misses text inside files, with a fix for each one.

  • By the Magpie Search team
  • Last updated
  • 5 min read

The short answer: Windows Search only looks inside files that are (1) in an indexed location, (2) of a type whose contents Windows is set to index, and (3) of a type Windows has a content filter for. Text in pictures and scanned PDFs is never indexed. Most “it doesn't find my file” problems come from one of these. The fixes are below, from the quickest check to a full index rebuild.

The seven usual causes

CauseTypical signFix
The folder isn't indexedNames match, contents never doAdd the location
The file type is set to “properties only”Works for .docx, not for .md or .logChange the file type setting
No content filter for the type“Registered IFilter not found”Use the plain-text filter or another tool
The text is in a picture or a scanScreenshots, scanned PDFs, photosUse OCR
The index is still building“Indexing speed is reduced”, few itemsWait, or plug in the laptop
The index is damagedResults vanish or are staleRebuild it
The Windows Search service is offSearch box finds nothing at allStart the service

Fix 1: add the folder to the index

  1. Open the Start menu, type Indexing Options and open it. (On Windows 11 you can also go to Settings › Privacy & security › Searching Windows › Advanced indexing options.)
  2. Click Modify.
  3. Tick the drive or folder that contains your files and click OK.
  4. Wait for the item count at the top to stop rising.

On Windows 11, Settings › Privacy & security › Searching Windows also offers Classic (libraries and desktop only) or Enhanced (the whole PC). If your files live somewhere else, such as a second drive, Classic won't cover them until you add the folder.

Searching a folder that isn't indexed matches file names only, unless you tick Always search file names and contents in File Explorer's Options › Search tab. That works, but it's slow, because every file is read again on every search.

Fix 2: tell Windows to index the file's contents

  1. In Indexing Options, click Advanced, then the File Types tab.
  2. Find the extension, for example md or log. If it isn't in the list, type it into Add new extension to list and click Add.
  3. Select it and choose Index Properties and File Contents.
  4. Click OK. Windows reindexes files of that type.

Check the Filter Description column. For plain-text formats such as .md, .csv or .json, the plain-text filter is fine. For formats that need special reading, such as some PDF setups or less common document types, Windows may have no filter at all, and choosing “contents” won't help. Then the file can only be found by name.

Fix 3: text in pictures and scanned PDFs

This one has no setting. Windows Search doesn't read the text in screenshots, photos or scanned pages. The only built-in exception is the optional Windows TIFF IFilter (Control Panel › Programs › Turn Windows features on or off), which reads .tif and .tiff files only. For PNG and JPG screenshots, see how to search for text in images.

Fix 4: rebuild the index

  1. Open Indexing Options and click Advanced.
  2. Under Troubleshooting, click Rebuild and confirm.
  3. Leave the PC on and plugged in. Search results will be incomplete until it finishes.

If your version of Windows still offers the Search and Indexing troubleshooter (Settings › System › Troubleshoot › Other troubleshooters), run it first; it can fix permissions and service problems automatically.

Fix 5: make sure the search service is running

  1. Press Win+R, type services.msc and press Enter.
  2. Find Windows Search. Its status should be Running and its startup type Automatic (Delayed Start).
  3. If it's stopped, right-click it and choose Start.

Search the right way in File Explorer

Even with a healthy index, how you search matters:

  • Start from the folder that contains the file, so Explorer searches that folder and its subfolders.
  • Use content:yourword to search only inside files, and ext:.docx or kind:document to narrow by type.
  • Use quotes for exact phrases: content:"error 404".

When the fixes aren't enough

If you need to search the contents of every file in a few folders, including pictures, scanned PDFs and Markdown notes, and see the matching text immediately, a dedicated tool is simpler than tuning the Windows index. Magpie Search:

  • Reads every supported file in the folders you choose, regardless of the Windows index settings.
  • Reads text in pictures and scanned PDF pages with on-device OCR.
  • Shows the full extracted text with every match highlighted, so you can see why a file matched.
  • Watches the folders live, so new and changed files are searchable within moments.
  • Has a query language (type:pdf, modified:7d, re:"INV-\d+") and plain-English dates.
The Magpie Search window with an empty search box listing the most recent files
The Magpie search window. With an empty box it lists your most recent files and searches.

A two-minute diagnosis

Not sure which cause you're dealing with? Try this with one file you know contains a word:

  1. Open the file's folder and search for content:theword. If it's found here but not from the Start menu, the problem is where you're searching, not the index.
  2. If it's not found, search for part of the file name. If the name is found but not the content, check the file type setting.
  3. If the name isn't found either, the folder isn't indexed or the index is broken: add the location, then rebuild if needed.
  4. If the word is only visible in a picture or a scanned page, no Windows setting will help; see Fix 3.

If a file still doesn't show up in Magpie, check that its folder is in Settings › Folders (with Subfolders ticked), that its kind is ticked in Settings › Indexing, and that it isn't one of the skipped kinds: hidden or system files, files in node_modules, .git, bin or obj, files over 300 MB, or old .doc/.xls/.ppt files.

Windows Search and Magpie side by side

Windows SearchMagpie Search
Apps, settings, web resultsYesNo
Which foldersIndexed locationsThe folders you add
Text in pictures and scansTIFF only (optional filter)Yes, with OCR
Shows the matching textNoYes, highlighted in a preview
Search by meaningOnly on Copilot+ PCsOptional, on any PC

Frequently asked questions

How long does it take to rebuild the Windows Search index?

From minutes to many hours, depending on how many files are in the indexed locations and how busy the PC is. Windows indexes more slowly while you're using the PC.

Should I turn on Enhanced search in Windows 11?

Enhanced indexes your whole PC instead of just libraries and the desktop. It finds more, but the first indexing takes longer and uses more battery. Adding only the folders you care about in Indexing Options is often the better balance.

Does Magpie replace Windows Search?

No. Windows Search stays the best way to open apps and settings from the Start menu. Magpie is for the contents of your files in the folders you choose, including text in pictures. They run side by side.