Change Search Options for Files and Folders on Windows 10
In this article
To change search options for files and folders on Windows 10, open File Explorer, go to the View tab, and click Options (or Change folder and search options). In the Folder Options dialog, switch to the Search tab to adjust how Windows searches file names and contents, including whether to use the index or search system folders and unindexed locations.
Windows 10’s search is split into two layers: the fast, index-based search used in File Explorer and the Start menu, and a slower, deeper search that scans every file when the index is unavailable or incomplete. The Search tab in Folder Options controls the behavior of the second layer, giving you control over how thorough and how slow your searches become.
Why the Search Tab Matters
Most people never open the Search tab because the default settings work well for everyday use. But when you need to find a file by its contents, search inside a system folder like Program Files, or locate something on an external drive that isn’t indexed, the default settings can miss it or take forever. The options here directly affect:
- Whether Windows looks inside file contents (not just file names).
- Whether system folders and hidden files are included.
- Whether Windows uses the index when searching unindexed locations.
- How the search handles compressed (ZIP) files.
Understanding these settings helps you balance speed and completeness, especially if you work with large drives, code repositories, or legacy file formats.
How to Open the Search Options
There are three quick ways to reach the same dialog:
- Open File Explorer, click the View tab, then click Options (on the far right). In the dialog, select the Search tab.
- In File Explorer, click File (top-left), then Change folder and search options.
- Type “folder options” in the Windows search box and select File Explorer Options from the results.
All three open the same Folder Options window. The Search tab is the third tab, between View and the (sometimes hidden) General tab.
What Each Setting Does
The Search tab contains two sections: What to search and When searching non-indexed locations. Here’s what each option means in practice.
What to Search
- In indexed locations, search file names and contents. This is the default. In folders that are part of the Windows Search index (like your user profile, Documents, and Desktop), Windows searches both file names and the text inside files. It’s fast because the index already contains the content.
- In indexed locations, search file names only. If you rarely search by content, this speeds up queries by skipping the content scan. You’ll still see results for files whose names match, but not for files containing the search term.
- Always search file names and contents. This forces Windows to scan file contents even in non-indexed locations, like external drives or network shares. It’s the slowest option but the most thorough.
When Searching Non-Indexed Locations
- Include subfolders. When enabled (default), Windows searches all subfolders. Disable this if you only want to search the top-level folder.
- Find partial matches. This allows Windows to match a search term like “report” to files named “report_final.docx” or “sales_report.xlsx”. If disabled, you must type the full file name.
- Use system search (slower). This is the fallback that scans every file byte-by-byte. It’s much slower than the index but works on any drive.
- Don’t use the index when searching file contents in non-indexed locations. This is a bit counterintuitive: even when searching a non-indexed folder, Windows may still use the index if the folder has been partially indexed. This option disables that, forcing a full scan. It’s rarely needed.
- Include compressed files (ZIP, CAB, etc.). When checked, Windows searches inside ZIP archives. This can slow down searches significantly if you have many large archives.
How to Choose the Right Settings
For most users, the defaults are fine. But if you find yourself missing files or waiting too long, adjust based on your situation:
- If you search by content often (e.g., finding emails or documents by a phrase), keep “search file names and contents” in indexed locations. For non-indexed drives, consider enabling “Always search file names and contents” only when you need it.
- If you have a large external drive and only need file names, choose “In indexed locations, search file names only” and disable “Include subfolders” when searching that drive to speed things up.
- If you work with source code and need to find a variable name inside files, enable “Always search file names and contents” for that project folder, or better, add the folder to the Windows index (via Indexing Options in Control Panel).
- If searches time out or hang, disable “Include compressed files” and “Find partial matches” to reduce the workload.
Remember that these settings apply to all searches in File Explorer, not just the current folder. There’s no per-folder search configuration in Windows 10.
Common Problems and Fixes
Search returns no results for a file you know exists. Check if the folder is excluded from indexing (right-click the folder → Properties → Advanced → uncheck “Allow this folder to be indexed”). Also ensure you’re not searching from a library that filters out certain file types.
Search is extremely slow. This usually happens when Windows is scanning a non-indexed location. Open Indexing Options (search for it in the Start menu) and add the folder to the index. Alternatively, narrow your search to a specific subfolder.
Search doesn’t find text inside PDFs or other custom formats. Windows Search only indexes content of file types that have a registered iFilter. PDFs often need a third-party iFilter (like Adobe’s) to be searchable. Without it, content search skips them.
Changes don’t stick. If you set an option and it reverts, a Group Policy might be overriding it. Check Computer Configuration → Administrative Templates → Windows Components → Search in the Local Group Policy Editor (gpedit.msc) for enforced settings.
Indexing vs. Non-Indexed Search
Windows 10 maintains a search index of your most common locations: user profile, Start menu, and often your whole C: drive. Searches in indexed folders are nearly instant because they query the index. Non-indexed locations (external drives, network shares, system folders) require a live scan, which is slower.
The Search tab’s “When searching non-indexed locations” section controls that live scan. If you often search external drives, you have two choices: add them to the index (but the index can become huge and slow) or accept slower searches. For occasional use, the default “Use system search” is fine.
Frequently Asked Questions
Q: How do I make Windows search inside files by default?
A: In Folder Options → Search tab, under “What to search”, select “Always search file names and contents”. This makes Windows scan file contents everywhere, but it will be slower. For indexed locations, the default already searches contents.
Q: Why doesn’t Windows find files on my external hard drive?
A: External drives are usually not indexed. Make sure the drive is connected and that you search from the drive’s root folder. Also, check that “Include subfolders” is enabled in the Search tab. If the drive is formatted with FAT32 or exFAT, indexing may not be available, so you’ll rely on the slower system search.
Q: Can I change search options for just one folder?
A: No, the Folder Options apply globally. However, you can add a specific folder to the index (via Indexing Options) to speed up searches within it, or you can use the search bar’s “Advanced options” to toggle “File contents” on the fly.
Q: What does “Find partial matches” do exactly?
A: It allows Windows to match a search term to any part of a file name. For example, searching “report” will find “annual_report.docx”. If disabled, you must type the full file name (or at least the beginning) to get a match.
Q: Does enabling “Include compressed files” slow down search a lot?
A: Yes, because Windows must decompress each ZIP or CAB file to read its contents. If you have many archives, it can significantly increase search time. Only enable it when you specifically need to find something inside an archive.
Q: How do I reset the search options to default?
A: Open Folder Options → Search tab and click “Restore Defaults” at the bottom of the dialog. This resets all settings on that tab to Windows 10’s original values.