{"id":143,"date":"2020-03-31T10:15:40","date_gmt":"2020-03-31T17:15:40","guid":{"rendered":"https:\/\/devblogs.microsoft.com\/windows-search-platform\/?p=143"},"modified":"2020-03-31T15:16:21","modified_gmt":"2020-03-31T22:16:21","slug":"configuration-and-settings","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/windows-search-platform\/configuration-and-settings\/","title":{"rendered":"Configuration and Settings"},"content":{"rendered":"<p>Welcome back. This is part 2 of an initial 4-part series discussing everything search indexer related on Windows. In this article we\u2019re going to take a high-level look at the configuration and settings for the indexing service, and what some of these options really mean.<\/p>\n<p>List of posts in the series<\/p>\n<ul>\n<li>The Evolution of Windows Search<\/li>\n<li>Configuration and Settings \ud83d\udc48You Are here<\/li>\n<li>What\u2019s in My Index?<\/li>\n<li>How to Make the Most of Search on Windows<\/li>\n<\/ul>\n<p>Let\u2019s first take a look at the default configuration. There are many ways applications can directly change Search Indexer settings, and of course users themselves can also modify the index. When I say default configuration, I\u2019m simply referring to how the Search Indexer operates by default on a fresh copy of Windows 10.<\/p>\n<h2>The Good Old Control Panel Applet<\/h2>\n<p>Around since Windows Vista, the desktop control panel applet for many releases was the typical go-to location for looking at and updating Search Indexer settings.<\/p>\n<blockquote><p>Note: You must be logged in as an administrator account to take full advantage of the settings for the Search Indexer.<\/p><\/blockquote>\n<p>When you open the control panel the default view uses \u2018categories\u2019 to display the control panel options. You will need to change this to \u201csmall icons\u201d in order to see everything there is, including the indexing options.<\/p>\n<p><img decoding=\"async\" width=\"1688\" height=\"947\" class=\"wp-image-144\" src=\"https:\/\/devblogs.microsoft.com\/windows-search-platform\/wp-content\/uploads\/sites\/54\/2020\/03\/word-image-33.png\" srcset=\"https:\/\/devblogs.microsoft.com\/windows-search-platform\/wp-content\/uploads\/sites\/54\/2020\/03\/word-image-33.png 1688w, https:\/\/devblogs.microsoft.com\/windows-search-platform\/wp-content\/uploads\/sites\/54\/2020\/03\/word-image-33-300x168.png 300w, https:\/\/devblogs.microsoft.com\/windows-search-platform\/wp-content\/uploads\/sites\/54\/2020\/03\/word-image-33-1024x574.png 1024w, https:\/\/devblogs.microsoft.com\/windows-search-platform\/wp-content\/uploads\/sites\/54\/2020\/03\/word-image-33-768x431.png 768w, https:\/\/devblogs.microsoft.com\/windows-search-platform\/wp-content\/uploads\/sites\/54\/2020\/03\/word-image-33-1536x862.png 1536w\" sizes=\"(max-width: 1688px) 100vw, 1688px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>You can also directly get to the indexing options by searching directly in the windows search box.<\/p>\n<p><img decoding=\"async\" width=\"1021\" height=\"1021\" class=\"wp-image-145\" src=\"https:\/\/devblogs.microsoft.com\/windows-search-platform\/wp-content\/uploads\/sites\/54\/2020\/03\/word-image-34.png\" srcset=\"https:\/\/devblogs.microsoft.com\/windows-search-platform\/wp-content\/uploads\/sites\/54\/2020\/03\/word-image-34.png 1021w, https:\/\/devblogs.microsoft.com\/windows-search-platform\/wp-content\/uploads\/sites\/54\/2020\/03\/word-image-34-300x300.png 300w, https:\/\/devblogs.microsoft.com\/windows-search-platform\/wp-content\/uploads\/sites\/54\/2020\/03\/word-image-34-150x150.png 150w, https:\/\/devblogs.microsoft.com\/windows-search-platform\/wp-content\/uploads\/sites\/54\/2020\/03\/word-image-34-768x768.png 768w\" sizes=\"(max-width: 1021px) 100vw, 1021px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>Inside the indexing options dialog you\u2019ll find an array of settings and options that you\u2019re able to configure.<\/p>\n<p><img decoding=\"async\" width=\"773\" height=\"812\" class=\"wp-image-146\" src=\"https:\/\/devblogs.microsoft.com\/windows-search-platform\/wp-content\/uploads\/sites\/54\/2020\/03\/word-image-35.png\" srcset=\"https:\/\/devblogs.microsoft.com\/windows-search-platform\/wp-content\/uploads\/sites\/54\/2020\/03\/word-image-35.png 773w, https:\/\/devblogs.microsoft.com\/windows-search-platform\/wp-content\/uploads\/sites\/54\/2020\/03\/word-image-35-286x300.png 286w, https:\/\/devblogs.microsoft.com\/windows-search-platform\/wp-content\/uploads\/sites\/54\/2020\/03\/word-image-35-768x807.png 768w\" sizes=\"(max-width: 773px) 100vw, 773px\" \/><\/p>\n<h2><\/h2>\n<h3>Indexed Data Types<\/h3>\n<p>In case you were ever curious on how the service decides what to put in the index this dialog shows you the list it uses to determine what data gets indexed. What you see right away is a list of \u201cIncluded Locations\u201d and \u201cExcluded Locations\u201d, and these behave exactly as they read. The indexing service contains a master list of what we call \u201cscopes\u201d that identify the file system paths the service will crawl, which paths we will ignore, and other data types that applications have registered on the machine for indexing.<\/p>\n<p>On my machine I\u2019ve got Internet Explorer History, Outlook, and various folder locations included. I haven\u2019t manually messed with any of these settings, so this is typical on a Windows 10 machine out of the box with Office installed and a POP3\/IMAP or Exchange Server account setup in Outlook.<\/p>\n<p>In the last article we talked about how applications could write their own protocols, meaning the data inside the index didn\u2019t stop with basic folders and files. Outlook and Internet Explorer use custom protocol handlers that allows the indexing service to understand the data coming in since they aren\u2019t files or folders.<\/p>\n<p>Outlook emails, calendar appointments, and contacts although stored on disk are not traditional file types themselves (.txt, .pdf, .doc, .xls, .ppt) but rather data that only Outlook knows how to parse and represent to you on the screen. The indexing service has no clue how to open this content either, so when Outlook gets installed it also installs its protocol handler and corresponding file filters that allow the indexing service to extract the relevant data from it.<\/p>\n<p>The same goes for Internet Explorer history and other applications such as SharePoint, OneNote, just to name a few. For those interested on the tech and details behind protocols don\u2019t worry, we\u2019ll cover everything about them including how to create one in a future article.<\/p>\n<h2><\/h2>\n<h3>Indexing Scopes<\/h3>\n<p>It\u2019s not enough for the indexing service to just understand data types in order to index and provide value, it also needs to understand which locations users\u2019 data is so it can index the right content. Like I stated previously, in the Vista timeframe your user profile directory (C:\\users\\&lt;your username&gt;) was an indexed scope by default. This means the indexing service would make sure it crawled your profile directory (including sub-folders) for all files and folders and put that content in the index.<\/p>\n<p>If you click on the \u2018Modify\u2019 button in the Indexing Options Control Panel you are taken to a more descriptive screen of the scopes.<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-160\" src=\"https:\/\/devblogs.microsoft.com\/windows-search-platform\/wp-content\/uploads\/sites\/54\/2020\/03\/modify2-1.png\" alt=\"Image modify2\" width=\"596\" height=\"837\" srcset=\"https:\/\/devblogs.microsoft.com\/windows-search-platform\/wp-content\/uploads\/sites\/54\/2020\/03\/modify2-1.png 596w, https:\/\/devblogs.microsoft.com\/windows-search-platform\/wp-content\/uploads\/sites\/54\/2020\/03\/modify2-1-214x300.png 214w\" sizes=\"(max-width: 596px) 100vw, 596px\" \/><\/p>\n<blockquote><p>NOTE: Show all locations will expand to show you more locations that are not common.<\/p><\/blockquote>\n<p>&nbsp;<\/p>\n<p>If you expand the tree of folders into C:\\users\\&lt;your username&gt; you can easily see which folders the service is looking at for changes in order to keep the index up to date.<\/p>\n<p><img decoding=\"async\" width=\"1109\" height=\"1185\" class=\"wp-image-148\" src=\"https:\/\/devblogs.microsoft.com\/windows-search-platform\/wp-content\/uploads\/sites\/54\/2020\/03\/word-image-37.png\" srcset=\"https:\/\/devblogs.microsoft.com\/windows-search-platform\/wp-content\/uploads\/sites\/54\/2020\/03\/word-image-37.png 1109w, https:\/\/devblogs.microsoft.com\/windows-search-platform\/wp-content\/uploads\/sites\/54\/2020\/03\/word-image-37-281x300.png 281w, https:\/\/devblogs.microsoft.com\/windows-search-platform\/wp-content\/uploads\/sites\/54\/2020\/03\/word-image-37-958x1024.png 958w, https:\/\/devblogs.microsoft.com\/windows-search-platform\/wp-content\/uploads\/sites\/54\/2020\/03\/word-image-37-768x821.png 768w\" sizes=\"(max-width: 1109px) 100vw, 1109px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>Notice how the AppData folder, MicrosoftEdgeBackups, and other hidden folders are not indexed by default. This is done because there isn\u2019t a ton of data in these folders that typically provide value to the user. The AppData folder contains application settings when applications are installed on a per-user basis so most of this content is specific to the application and not data that one would typically search. You can of course check the AppData box and the indexing service will start crawling the AppData folder and all its\u2019 subdirectories and stick those files\/folders and content in the index for searching.<\/p>\n<h2><\/h2>\n<h3>Advanced Options<\/h3>\n<p>The advanced button from the main page in the indexing options dialog takes you to another page with even more advanced settings on top of scope control.<\/p>\n<p><img decoding=\"async\" width=\"381\" height=\"490\" class=\"wp-image-149\" src=\"https:\/\/devblogs.microsoft.com\/windows-search-platform\/wp-content\/uploads\/sites\/54\/2020\/03\/word-image-38.png\" srcset=\"https:\/\/devblogs.microsoft.com\/windows-search-platform\/wp-content\/uploads\/sites\/54\/2020\/03\/word-image-38.png 381w, https:\/\/devblogs.microsoft.com\/windows-search-platform\/wp-content\/uploads\/sites\/54\/2020\/03\/word-image-38-233x300.png 233w\" sizes=\"(max-width: 381px) 100vw, 381px\" \/><\/p>\n<p>Starting from the top, let\u2019s walk through the options an discuss in detail of what they actually mean.<\/p>\n<h4>Encrypted Files<\/h4>\n<p>By default, the indexing service does not index encrypted files. There are different types of encryption that administrators at enterprises can use to encrypt data as well as group policies that can be pushed down to company owned machines to allow the indexing of this content. The main reason behind this is the indexing service doesn\u2019t know how to decrypt files in most cases, as well as the file that is encrypted should not be opened without the proper authority to do so or the right decryption handling present on the local machine. The &#8220;Index encrypted files&#8221; option enables\/disables this behavior of encrypted files.<\/p>\n<h2><\/h2>\n<h4>Diacritics<\/h4>\n<p><a href=\"https:\/\/en.wikipedia.org\/wiki\/Diacritic\">Diacritics<\/a> are marks, points, signs, or accents to basic characters. In some languages these are used widely and there is a distinct difference in the meaning of the base character <strong>a<\/strong>, versus <strong>\u00e1 <\/strong>(for explanation purposes only). For some languages where it\u2019s very common to treat similar words with diacritics as different words this option is on by default. For my machine since the system locale is en-US this is not common, and therefore the indexing service treats characters and words with diacritics as the same characters. This means regardless if I search for <strong>a <\/strong>or <strong>\u00e1, <\/strong>they will be treated as the same word and find the same set of documents.<\/p>\n<h2><\/h2>\n<h4>Indexing Rebuilds<\/h4>\n<p>An index rebuild is probably what you think it is. It means we blow away the underlying database and use the current scopes on the machine to re-crawl and re-index everything that was previously there. This is a very expensive process in terms of CPU and disk, so you want to make sure you know that certain experiences on the machine will be impacted until the index is rebuilt. If search experiences aren\u2019t working properly or you notice it is not finding files that it should, a rebuild is a good resolution for this as it will get the index back into the most up to date and fresh state.<\/p>\n<p>The index can also become corrupt due to hardware or other reasons where a rebuild will happen by itself without any explicit user interaction.<\/p>\n<blockquote><p>Note: Only files, folders, and applications you see in the included scopes list store their data in the index. Other things that are commonly searched for such as store applications or installed apps and settings are not stored in the system index.<\/p><\/blockquote>\n<h2><\/h2>\n<h4>Index Location<\/h4>\n<p>The default location of the index lives in C:\\ProgramData\\Microsoft. You can alter this location by entering a new one, and when you click \u2018Select New\u2019 the service will temporarily be restarted and if you navigate to the new path you\u2019ve selected you will see the indexing service files there. This is useful if you have a very large index and want to move it to a separate volume to save space on the one with your Windows installation.<\/p>\n<h2>File Types<\/h2>\n<p>Now let\u2019s move over to the File Types tab. You\u2019ll noticed there is a very large list of extensions along with descriptions for each of them. These are the list of registered extensions in the system, which are done in the <a href=\"https:\/\/docs.microsoft.com\/en-us\/windows\/win32\/shell\/reg-shell-exts\">registry through the shell layer<\/a>. Every extension in the system contains a property handler to programmatically read and write to. These can either be created and deployed by an installed application or they can be a system one. Extensions also may or may not have a corresponding file filter, which are the IFilters discussed in the previous article. These filters can be registered with a given file extension in order to help the indexing service extract the necessary pieces of content out from that file so you can search it.<\/p>\n<p><img decoding=\"async\" width=\"384\" height=\"494\" class=\"wp-image-150\" src=\"https:\/\/devblogs.microsoft.com\/windows-search-platform\/wp-content\/uploads\/sites\/54\/2020\/03\/word-image-39.png\" srcset=\"https:\/\/devblogs.microsoft.com\/windows-search-platform\/wp-content\/uploads\/sites\/54\/2020\/03\/word-image-39.png 384w, https:\/\/devblogs.microsoft.com\/windows-search-platform\/wp-content\/uploads\/sites\/54\/2020\/03\/word-image-39-233x300.png 233w\" sizes=\"(max-width: 384px) 100vw, 384px\" \/><\/p>\n<h2><\/h2>\n<h4>Index Properties vs. Index Properties and File Contents<\/h4>\n<p>You\u2019ll notice for every file extension there are a few options. By unchecking the box next to each extension, you are telling the indexing service to not process files containing these extensions. Doing so will not put these items in the index, and they will not be searchable. If you select an extension row you can decide if you want the properties of these file types to be indexed only, or both properties and contents.<\/p>\n<p>Properties are things like the path, file name, last modified date, created date, size of the file, and attributes. The contents are what\u2019s inside the file when you open it. These options give you quite a bit of flexibility to fine tune the service to your needs. Maybe you\u2019re a developer and you store a lot of your code\/projects in your user profile folder and you\u2019d rather not have the indexing service open up your .js or .py files and index the content line by line. These options give you that control over how much data, and what data is put in the index to tailor your search experience.<\/p>\n<p>You can also add in your own extensions in this dialog, which will in turn register it with the system and use the default \u201cFile Properties filter\u201d.<\/p>\n<h2>Modern Settings Page (Windows 10)<\/h2>\n<p>A few releases ago we put together a new Windows Search settings page in the Settings app, trying to bring over and expose even more functionality to users.\u00a0 Here\u2019s a quick look at the page today.<\/p>\n<p><img decoding=\"async\" width=\"1219\" height=\"930\" class=\"wp-image-151\" src=\"https:\/\/devblogs.microsoft.com\/windows-search-platform\/wp-content\/uploads\/sites\/54\/2020\/03\/word-image-40.png\" srcset=\"https:\/\/devblogs.microsoft.com\/windows-search-platform\/wp-content\/uploads\/sites\/54\/2020\/03\/word-image-40.png 1219w, https:\/\/devblogs.microsoft.com\/windows-search-platform\/wp-content\/uploads\/sites\/54\/2020\/03\/word-image-40-300x229.png 300w, https:\/\/devblogs.microsoft.com\/windows-search-platform\/wp-content\/uploads\/sites\/54\/2020\/03\/word-image-40-1024x781.png 1024w, https:\/\/devblogs.microsoft.com\/windows-search-platform\/wp-content\/uploads\/sites\/54\/2020\/03\/word-image-40-768x586.png 768w\" sizes=\"(max-width: 1219px) 100vw, 1219px\" \/><\/p>\n<p>Starting from the top again this settings page contains some of the same information to start as the indexing options dialog. The only new piece of information here is that is also shows the # of items that are pending or in the queue to be indexed.<\/p>\n<h3>Find My Files<\/h3>\n<p>Find My Files was a feature introduced in build 1903 that contained a brand-new mode for search on top of the current Classic mode that everyone has been used to for many releases.<\/p>\n<h4>Classic Mode<\/h4>\n<p>Classic mode is the default out of the box where the Search Indexer would look in your user profile and start menu folders for things to index. The idea behind this is most people do not add custom configuration to their machines, and applications as well as these users tend to store things here near the user libraries\/known folders.<\/p>\n<h4>Enhanced Mode<\/h4>\n<p>Enhanced mode turns on indexing for more than just your user profile, but not for content. What this means is that the indexer will start crawling and looking for items on other drives and on other folders of your system drive (excluding some windows update and windows directories) but it will only index key properties of those items so that you can still find them through all windows search experiences. You will not be able to search the contents of these files in this mode. This is intended to help users who want to be able to find items by name, as well as be able to sort by the most common properties in file explorer views.<\/p>\n<h3>Excluded Folders<\/h3>\n<p>Excluded folders was always a concept from a <a href=\"https:\/\/docs.microsoft.com\/en-us\/windows\/win32\/api\/searchapi\/nn-searchapi-isearchcrawlscopemanager\">programming perspective<\/a> as well as in the Indexing Options panel. You can exclude folders by walking the tree of folders from the indexing options screen and unchecking which folders you don\u2019t want the indexing service to look at, however you need to expand all paths to see the list of excluded scopes, and that is sometimes not ideal. This was created to be a more intuitive way to see and understand these scopes all on a single screen and give the user a quick way to add or remove them.<\/p>\n<h3>Indexer Performance<\/h3>\n<p>Another new feature was added in 20H1 that when turned on will adjust the back-off logic based on the <a href=\"https:\/\/docs.microsoft.com\/en-us\/windows\/win32\/api\/powersetting\/ne-powersetting-effective_power_mode\">current effective power mode setting<\/a> on your device. When the performance toggle is enabled the service will completely back off when you are in BatterySaver and BetterBattery modes, and it will run with its normal back-off logic in all other performance modes including balanced.<\/p>\n<p>While there are many different options available, the default configuration might not be what is best for you. You might store a lot of your data on volumes separate from the system\/OS one in which case you might add scopes to be content indexed on those drives, or a combination of that plus enhanced mode to target specific folders on those drives for content while the rest is still searchable by basic properties.<\/p>\n<p>Or, you might be the opposite and store everything in your user profile folder but might want to exclude some developer projects or other folders that don\u2019t provide you much value. Whatever the reasons, we are always looking for ways to help users fine tune their machine so that their experience is most enjoyable.<\/p>\n<p>There are definitely challenges over the years to understand all user behavior and setup indexing for everyone automatically, so we try to provide you with enough options to make your experience better depending on how much data you have on your machine. We encourage you to file feedback or suggestions on how to make the platform better, and we\u2019re constantly learning about new user patterns to make better options in settings available or create new APIs for applications to tweak the settings as well.<\/p>\n<p>Again, thanks for tuning in. Next up \u2013 <strong>What\u2019s in My Index?, <\/strong>where we take a deep dive into understand the data that the index holds, how you can read it, access it, and query it yourself.<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Welcome back. This is part 2 of an initial 4-part series discussing everything search indexer related on Windows. In this article we\u2019re going to take a high-level look at the configuration and settings for the indexing service, and what some of these options really mean. List of posts in the series The Evolution of Windows [&hellip;]<\/p>\n","protected":false},"author":16061,"featured_media":110,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[7,1],"tags":[50,47,49,48,51,53,52],"class_list":["post-143","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-general","category-windows-search-platform","tag-indexer","tag-indexing","tag-indexing-service","tag-search","tag-search-indexer","tag-windows-search-service","tag-wsearch"],"acf":[],"blog_post_summary":"<p>Welcome back. This is part 2 of an initial 4-part series discussing everything search indexer related on Windows. In this article we\u2019re going to take a high-level look at the configuration and settings for the indexing service, and what some of these options really mean. List of posts in the series The Evolution of Windows [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/windows-search-platform\/wp-json\/wp\/v2\/posts\/143","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/windows-search-platform\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/windows-search-platform\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/windows-search-platform\/wp-json\/wp\/v2\/users\/16061"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/windows-search-platform\/wp-json\/wp\/v2\/comments?post=143"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/windows-search-platform\/wp-json\/wp\/v2\/posts\/143\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/windows-search-platform\/wp-json\/wp\/v2\/media\/110"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/windows-search-platform\/wp-json\/wp\/v2\/media?parent=143"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/windows-search-platform\/wp-json\/wp\/v2\/categories?post=143"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/windows-search-platform\/wp-json\/wp\/v2\/tags?post=143"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}