Windows Search indexing

Also known as: Indexing Options · search indexer

On this page 7

Windows Search indexing is the background service in Windows that reads files, emails and metadata ahead of time and stores what it finds in a searchable catalog, so that a query in File Explorer, the Start menu or Outlook returns results in milliseconds instead of scanning the disk. In Windows performance work, the indexer matters twice: it makes searches fast, and it consumes CPU, disk and memory while it builds and maintains that catalog.

The feature is configured through Indexing Options in Control Panel and the Searching Windows page in Settings. Administrators often call the underlying process simply the search indexer, after the SearchIndexer.exe executable that runs inside the WSearch service.

How the search indexer builds its catalog

The indexer works as a pipeline of three cooperating components. The SearchIndexer.exe process inside the WSearch service manages the catalog and decides what needs work, while short-lived SearchProtocolHost.exe and SearchFilterHost.exe processes do the actual reading in an isolated, low-privilege sandbox, so that a malformed file cannot crash the main service.

Protocol handlers know how to reach a data store, such as the local file system or an Outlook mailbox. Property handlers extract structured metadata such as author, camera model or song duration. IFilters extract the readable text from a file format, for example the words inside a PDF or a Word document. The results flow into an inverted index, a structure that maps each word or property value to the items that contain it.

After the first full crawl, the indexer stays current through change notifications. On NTFS volumes it reads the USN change journal, which records every file creation, rename and deletion, so it only reprocesses what changed rather than rescanning entire folders.

ComponentRoleRuns as
WSearch serviceHosts the indexer and the catalogSearchIndexer.exe
Protocol handlerOpens a data store and lists its itemsSearchProtocolHost.exe
IFilterExtracts text from a file formatSearchFilterHost.exe
Property handlerReads metadata such as title or dateSearchFilterHost.exe
CatalogStores the inverted index on diskFiles under ProgramData
Main components of the indexing pipeline

What Windows Search indexing covers

By default the indexer covers user libraries, the Start menu and Outlook data, not the entire drive. This Classic scope keeps the catalog small. The Enhanced mode, selectable in Settings, extends indexing to all fixed drives except folders the user excludes, which improves search coverage at the cost of a longer initial crawl and a larger catalog.

For every file type, Indexing Options lets an administrator choose between properties only and properties and file contents. Content indexing requires a working IFilter for the format and is what allows a search for a phrase inside a document body to succeed.

OptionWhat gets indexedTypical effect
Classic scopeLibraries, desktop, Start menu, OutlookSmall catalog, short initial crawl
Enhanced scopeAll fixed drives minus exclusionsWider results, heavier first crawl
Properties onlyFile name, size, dates, metadataLower CPU and catalog size
Properties and contentsMetadata plus document textFull-text search, more processing
Excluded foldersNothing inside the folderRemoves churn from busy paths
Indexing scope options and their effects

Resource use and the effect on Windows performance

The indexer is designed to back off when the user is active. It runs at low CPU and I/O priority, slows down when keyboard or mouse input is detected and, on laptops, can pause on battery power depending on the power mode. Once the catalog is complete, steady-state activity is usually negligible on modern hardware.

Heavy load appears in predictable situations: the first full crawl after installation or a rebuild, mass copies of documents, very large mailboxes, and folders whose contents change constantly, such as build output or virtual machine disks. A corrupted catalog can also trigger endless reindexing, which shows as sustained disk activity attributed to SearchIndexer.exe in Task Manager or Resource Monitor.

Catalog size depends mostly on the volume of indexed text, not on raw disk usage. A collection of large video files adds little, while hundreds of thousands of emails or text documents can produce a catalog of several gigabytes.

The key distinction is between searching a prebuilt index and scanning files on demand. When a folder is not indexed, File Explorer falls back to a live scan that opens files one by one, which is accurate but slow on large trees and network shares.

ApproachSpeed on large foldersMain trade-off
Indexed searchNear instantBackground work to maintain the catalog
Unindexed Explorer scanSlow, grows with file countNo background cost, long waits
Command-line toolsModerate, single passExact control, no persistent catalog
Server-side indexingFast for shared foldersDepends on the file server configuration
Indexed search compared with alternatives

Indexing is sometimes confused with SysMain, which also runs in the background. SysMain preloads frequently used programs into memory to speed up launches, while the indexer only catalogs content for search. Disabling one does not affect the other.

Tuning and troubleshooting the search indexer

Most problems are solved by adjusting scope rather than disabling the service. Disabling WSearch removes the background cost but also breaks fast search in the Start menu and Outlook, and some applications that depend on the Windows Search API lose functionality.

SymptomLikely causeRecommended fix
Constant disk activityBusy folder inside the scopeExclude the folder in Indexing Options
Missing search resultsLocation not indexed or catalog staleAdd the location and wait for indexing
Reindexing never finishesCorrupted catalogRebuild the index from Advanced settings
Text inside files not foundProperties-only setting or missing IFilterEnable content indexing for that type
High CPU after setupFirst full crawl in progressAllow time for the crawl to complete
Common symptoms, causes and fixes
  • Use the built-in troubleshooter linked from Indexing Options before rebuilding manually.
  • Exclude developer and cache folders such as node_modules, build output and VM images.
  • Keep the catalog on a fast SSD, which is the default system drive on most current PCs.
  • Treat a rebuild as a last resort, because it repeats the costly first crawl.

A non-technical view

Windows Search indexing works like the index at the back of a book. Instead of reading every page each time you look for a word, the computer prepares a list in advance that says where each word appears.

Preparing that list takes some effort, mostly when the computer is new or when many files arrive at once. After that, it only updates the list for files that change. The result is search that feels instant, in exchange for a little quiet work in the background.

A concrete example

A software developer notices that a new workstation is noisy and sluggish for hours after each project build. Resource Monitor shows SearchIndexer.exe reading and writing constantly. The cause is a build output folder inside the Documents library, where each compilation creates and deletes tens of thousands of small files that the indexer dutifully processes.

The developer opens Indexing Options, excludes the build and package cache folders, and leaves the source code folder indexed with file contents enabled. Disk activity after builds drops to normal levels, while searching for a function name across project documents still returns results in under a second.