Quick fix: By default File Explorer searches filenames only. To search inside file contents: open Folder Options → Search tab → tick Always search file names and contents. Or use search syntax: type content:"exact phrase" in the search box. Indexed folders return content matches instantly; non-indexed folders scan in real time.
You remember a phrase from a document but can’t recall the filename. You need full-text search through PDFs, Word docs, text files. File Explorer can do this but it’s off by default for performance reasons.
Affects: Windows 11 (and Windows 10) File Explorer.
Fix time: ~10 minutes.
What causes this
File Explorer search has two modes: filename only (default, fast) and filename + contents (slower for non-indexed folders, instant for indexed). The Windows Search index pre-extracts text from supported formats (txt, docx, pdf with text layer, html). For indexed folders, searches return content matches without rescanning. For non-indexed folders, every search re-reads files — slow but available with the right setting.
Method 1: Enable Always search file contents
The setting toggle.
- Open File Explorer. Click the three-dot menu → Options (or in older builds, click View → Options).
- Switch to the Search tab.
- Under How to search: tick Always search file names and contents (this might take several minutes).
- Under When searching non-indexed locations: tick Include system directories and Include compressed files.
- Click Apply → OK.
- Test: in any folder, type a phrase in the search box. After a few seconds, files containing the phrase appear.
- For indexed folders (Documents, Desktop): results are instant.
- For non-indexed folders: results take seconds to minutes depending on folder size.
This is the simple toggle.
Method 2: Use search syntax for precise queries
For more targeted content searches.
- In File Explorer’s search box, use these prefixes:
content:"exact phrase"— full-text search for that phrase.kind:document content:"quarterly report"— only document files containing that phrase.ext:.pdf content:"invoice"— only PDFs containing “invoice.”filename:budget*— only files whose name starts with “budget.”modified:this week— files modified in last 7 days.size:>10MB— files larger than 10 MB.
- Combine:
kind:document modified:this month content:"invoice". - For boolean: use AND, OR, NOT (uppercase):
content:invoice NOT content:draft. - Use wildcards:
filename:budget*2026matches budget2026, budget_2026, etc. - For path:
folder:"C:\Projects"restricts search to that path. - Full syntax reference: search Microsoft Docs for “Advanced Query Syntax (AQS) for Windows Search.”
AQS gives precise queries beyond simple keyword search.
Method 3: Use grep-style alternatives for power users
For very large folder trees or non-indexed content.
- Install Everything (free, voidtools.com). Fastest filename search.
- For full-text search across thousands of files: install DocFetcher (free, opensource).
- Or use FileLocator Lite (free, mythicsoft.com) — handles content search across many file formats including PDF, DOCX, archive contents.
- For PowerShell-based content search:
Get-ChildItem -Path C:\Documents -Recurse -Include *.txt,*.md,*.log | Select-String -Pattern "searchterm"Returns matching lines from text files.
- For developers searching source code: install ripgrep (rg) via
winget install BurntSushi.ripgrep.MSVC. Fast grep-style search:rg "searchterm" C:\projects - For VS Code users:
Ctrl + Shift + Fopens a project-wide search. Searches inside all files in the workspace.
This is the right path when File Explorer’s content search isn’t fast enough.
How to verify the fix worked
- Type a known phrase from a document into File Explorer search. Document appears in results.
- Open the file. The phrase is present in the contents, confirming match.
- Folder Options → Search tab: Always search file names and contents is ticked.
If none of these work
If content search returns no results despite the setting being on, the cause may be: File type not indexed: Windows Search supports specific extensions for content indexing (txt, docx, pdf with text layer, html, csv). PDFs created from scanned images have no text layer; OCR them first via Acrobat or online tools. Indexing not complete: if you just added many new files, indexing takes time. Open Indexing Options — wait for “Indexing complete.” For specific formats not indexed: install IFilter for that format. Adobe Reader installs PDF IFilter automatically. For RTF, EML, MSG, install third-party iFilters from Microsoft. For very large files: Windows Search has size limits (default ~16 MB per file). Larger files aren’t fully indexed. Use DocFetcher or grep-based tools. For protected/encrypted documents: password-protected PDFs and DRM-protected files aren’t indexed. Content can’t be searched.
Bottom line: Folder Options → Search tab → Always search file names and contents. Use AQS syntax (content:"phrase", kind:document) for precision. Third-party tools for very large or non-indexed datasets.