Answered by:
Windows 7 search always returns no results

Question
-
No matter what I type into the search box in the start menu, windows 7 search always returns "No items match your search." This happens even with things that I know for certain exist. (e.g. cmd)
FWIW I once uninstalled windows search because I didn't think I would use it, but then I realized that this removes ALL search functions and not just the realtime search (which didn't happen in windows XP.) When I reinstalled it, this started happening. No matter what I try (e.g. uninstalling and reinstalling again) this still happens.Friday, November 13, 2009 10:06 PM
Answers
-
FIGURED IT OUT:
There's a registry key:
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced
In this key there are two values (both hex dword)
Start_SearchFiles
Start_SearchPrograms
Uninstalling Windows Search sets the value of both of these to zero, when they default to something else. However, reinstalling Windows Search does not restore them to their default setting like it probably should. By manually setting both of them to 1, it re-enabled the windows search function from the start menu. Somebody might want to notify one of the Microsoft software engineers that they should correct this issue so that reinstalling Windows Search properly configures this registry key back to its default setting, that way if anybody else does what I just did they'll avoid the same headache I went through. (I don't know how to contact them myself.)
I am using Windows 7 but I think this issue probably applies to Vista as well.
How I came to this conclusion :
Reno Jim's suggestion that I try under a different account lead me to the solution. Noticing that it worked under a different account, I figured were going to be looking under HKEY_CURRENT_USER. Given that the start menu is a part of explorer, I navigated down to software/microsoft/windows/currentversion/explorer, and looking through a few different keys I noticed these two interestingly named values under the "advanced" key. Googling their names lead me to a tweak site that showed what they do, and apparently setting them to zero results in the situation I was in.- Marked as answer by Rakeesh_j Wednesday, November 25, 2009 1:19 PM
Wednesday, November 25, 2009 1:18 PM
All replies
-
Hi Rakeesh_j,
What works for me is configuring folder options > search as pictured:- Proposed as answer by Backsmith Tuesday, August 10, 2010 7:58 AM
Saturday, November 14, 2009 12:01 AM -
I just changed mine to match yours, and it still doesn't work.Saturday, November 14, 2009 2:56 AM
-
Does anyone know what files he should register?Saturday, November 14, 2009 3:36 AM
-
Hi,
You may try to rebuild the index to check the issue.
If it does not work, I would like to suggest you run a System File Checker to scan and repair the system files.
What’s the result?
Arthur Li - MSFTMonday, November 16, 2009 2:53 AM -
I rebuilt the index (it now has 14,000 some odd objects indexed) and ran the system file checker which went through without a hitch.
Still doesn't work. I can type something like 'cmd' in the search box in the start menu, and it returns "No items match your search."
Don't suppose there is somebody who could try to uninstall windows search (via unchecking it in control panel "programs and features" and "turn windows features on or off",) reboot, reinstall it via the same means, reboot, and see if it works proper? I am thinking this is what broke it for me, but I am not sure how to undo the damage.Monday, November 16, 2009 11:38 PM -
Hi,
If Windows Search was disabled recently, you may also run System Restore to fix it.
If it does not work, I would like to suggest you import the Windows Search registry to repair it.
If it still cannot work, I also would like to suggest you run System File Checker.
If the issue persists, you also can perform an In-Place upgrade to repair the system.
Good luck!
Arthur Li - MSFT- Marked as answer by Arthur_LiMicrosoft contingent staff Friday, November 20, 2009 8:34 AM
- Unmarked as answer by Rakeesh_j Wednesday, November 25, 2009 1:33 PM
Tuesday, November 17, 2009 8:48 AM -
Respectfully, I've already tried all of these as I mentioned earlier, except system restore due to having done this around the time when I first installed windows 7.
I don't want to do an in-place upgrade because that will wipe out a bunch of other settings I've done all in the name of fixing the search app. Perhaps this is simply a bug with the search program that results from uninstalling and reinstalling it? I don't suppose there is any way to forward this to one of the microsoft engineers?- Proposed as answer by daniel.pereira Tuesday, October 4, 2011 2:05 PM
Friday, November 20, 2009 9:44 PM -
Maybe this will help:
http://www.voidtools.com/
Seesons greetings!Friday, November 20, 2009 10:57 PM -
I had the same problem and spent the last two days trying to find the solution. I finally stumbled upon the registry key:
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer
There were a bunch of NoSearchXXXInStartMenu values set to 1. I don't know how they got there, but I deleted them (actually deleted the whole "Explorer" subkey since they were the only values there) and everything seems to be working now.
Hope this helps!
-JTSaturday, November 21, 2009 11:45 AM -
The explorer subkey doesn't seem to exist for me. However I am curious how you got to where you did. How did you begin to troubleshoot the start menu search box? Perhaps I can find the solution to my problem by starting out the same way you did.Saturday, November 21, 2009 3:25 PM
-
That's too bad. I was really hoping I was onto something that would help. It's hard for me to say exactly what steps I took. I first had the problem that the indexer would run and then report that 0 items were indexed. That problem turned out to be the "Allow service to interact with desktop" checkbox in the Windows Search service "Log On" property being checked. I don't know how that got checked either. Once I got it to build an index, I still got the "No items match your search" result no matter what I typed into the search box. I looked at so many web pages having to do with Windows Search problems that I'd have a hard time recreating my steps. A lot of them had to do with indexing problems which you don't seem to have. The page that mentioned the "NoSearch" keys was this one: http://www.winvistaclub.com/t78.html
One thing I did that you might want to try is to create a new account (if you don't already have a second account) and see if search works in that account. I created a "test" account and the search seemed to work fine in that account. I spent a lot of time trying to compare the accounts to see what processes and services were running on each account. That led nowhere since they seemed to be the same. I tried copying the "Windows Search" registry key from one account to the other, and that did nothing. I used "procmon" to see what files and registry keys were being accessed from each account, but that didn't really help either. So I guess what I'm trying to say is I just got lucky.
A couple of notes that you might find useful:
If you uninstall the Windows Search feature, the index is not deleted. Its default location is "C:\ProgramData\Microsoft\Search". I deleted that whole subdirectory (you may have to change some permissions/ownership to do it) just in case there was something wrong with the index, but I can't really say it was necessary.
My installation of Windows 7 was an upgrade from Vista. I never used Windows Search in Vista and I probably disabled/uninstalled it at some point. Maybe that's when I got those "NoSearch" keys.
Good luck! If I can be of any help, just let me know.
-JTSunday, November 22, 2009 4:58 AM -
Hi,
If you would not like to perform the previous suggestions I provided, you may also perform the following steps to rebuild the index and check the issue.
1. Click on the Start Button, type "cmd" (without quotation marks) in the Start Search box. Right-click CMD listed above and click "Run as administrator".
2. At the command prompt, copy the following command to stop the Search Service:
net stop wsearch
3. Click on the Start Button, type "regedit" (without quotation marks) in the Start Search box and press Enter.
(Click "Continue" if User Account Control prompts for permission)
4. Navigate to the following registry key by expanding the "+" beside the registry tree in the left pane:
[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows Search]
5. Right click on "Windows Search", click "Export"; please name the file as "RegBackup" (without quotation marks) and then save it to the C:\ drive as a backup.
Note: In case we need to undo the modification, we can double click this RegBackup.reg file to restore the registry key.
7. Right-click on “Windows Search” and choose Permissions. On the Security tab, verify that Administrator is the owner and has full control of the key.
8. Within the "Windows Search" registry key, find the SetupCompletedSuccessfully value on the right pane. Double-click SetupCompletedSuccessfully and change its value to 0.
9. Delete the following registry keys:
HKLM\Software\Microsoft\Windows Search\Applications\windows
HKLM\Software\Microsoft\Windows Search\CatalogNames\windows
HKLM\Software\Microsoft\Windows Search\Databases\windows
HKLM\Software\Microsoft\Windows Search\Gather\windows
HKLM\Software\Microsoft\Windows Search\Gathering Manager\Applications\windows
HKLM\Software\Microsoft\Windows Search\UsnNotifier\windows
If the key cannot be deleted, please perform the following steps to take ownership first
a. Right-click the key and click "Permission"
b. Click the "Advanced" button.
c. On the "Owner" tab, verify your account is the current owner. If not, click "Other users or groups" to add your account. Then select your account, check "Replace owner on subcontainers and objects" and click OK on the windows.
10. Click on the Start Button, type "cmd" (without quotation marks) in the Start Search box. Right-click CMD listed above and click "Run as administrator".
11. At the command prompt, copy the following command to delete the default index location folder:
rd %ProgramData%\Microsoft\Search\Data\Applications\Windows /S /Q
12. Start the Search Service again by typing the following:
net start wsearch
After approximately one minute, check the SetupCompletedSuccessfully registry value and it should now be set to 1 and the Search service should rebuild the index database.
What’s the result?
Arthur Li - MSFTTuesday, November 24, 2009 2:29 AM -
Hi,
If you would not like to perform the previous suggestions I provided, you may also perform the following steps to rebuild the index and check the issue.
1. Click on the Start Button, type "cmd" (without quotation marks) in the Start Search box. Right-click CMD listed above and click "Run as administrator".
Problem with that though: the start search box doesn't work :) Just typing in cmd says "No items match your search." It doesn't matter what I type, it always says that. This is the problem at hand. But I know of other ways of doing what you are asking me to do.
I stopped the service, modified the registry as you instructed, deleted that directory, and restarted the service. All it did was replace all of those keys I deleted verbatim, and changed the setupcompletedsuccessfully value back to 1. Still can't find any results on the start menu.
Wednesday, November 25, 2009 12:50 PM -
One thing I did that you might want to try is to create a new account (if you don't already have a second account) and see if search works in that account.
This is actually getting somewhere. I just turned on the guest account and it turns out that it works fine in that account - from the start menu, everything. It must be a user specific setting that is messed up. Now the tricky part is finding it :) Unfortunately that is way easier said than done. I'll start looking at this tomorrow but if anybody gets any ideas of where I should look meanwhile let me know.Wednesday, November 25, 2009 12:59 PM -
FIGURED IT OUT:
There's a registry key:
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced
In this key there are two values (both hex dword)
Start_SearchFiles
Start_SearchPrograms
Uninstalling Windows Search sets the value of both of these to zero, when they default to something else. However, reinstalling Windows Search does not restore them to their default setting like it probably should. By manually setting both of them to 1, it re-enabled the windows search function from the start menu. Somebody might want to notify one of the Microsoft software engineers that they should correct this issue so that reinstalling Windows Search properly configures this registry key back to its default setting, that way if anybody else does what I just did they'll avoid the same headache I went through. (I don't know how to contact them myself.)
I am using Windows 7 but I think this issue probably applies to Vista as well.
How I came to this conclusion :
Reno Jim's suggestion that I try under a different account lead me to the solution. Noticing that it worked under a different account, I figured were going to be looking under HKEY_CURRENT_USER. Given that the start menu is a part of explorer, I navigated down to software/microsoft/windows/currentversion/explorer, and looking through a few different keys I noticed these two interestingly named values under the "advanced" key. Googling their names lead me to a tweak site that showed what they do, and apparently setting them to zero results in the situation I was in.- Marked as answer by Rakeesh_j Wednesday, November 25, 2009 1:19 PM
Wednesday, November 25, 2009 1:18 PM -
Glad to see you got it figured out! It's interesting how many ways the search can get screwed up. Right now I'm wondering why one of my Word docx files doesn't seem to get indexed but others in the same directory do. If I save it to a new name in the same directory the new file gets indexed, but the original still doesn't. Weird!
-JTFriday, December 4, 2009 9:03 AM -
I have an update on that Start_SearchFiles registry entry.
I couldn't figure out why my "Test" account would return results from the C:\Users\Public directory but my normal account wouldn't. The Test account had Start_SearchFiles set to 2 and my normal account had it set to 1. Setting it to 2 in my normal account got the search to return results from the "Public" directories. I'm still trying to find out more information about that value.
Edit: I figured it out. Sometimes I make these things harder than they need to be. There's a item under "Customize" on the Start Menu properties page that controls the Start_SearchFiles entry. Under "Search other files and libraries" there are three options:
Don't search --------------------> 0
Search with public folders -----> 2
Search without public folders --> 1
-JT- Edited by Reno Jim Saturday, December 5, 2009 11:00 PM added info
Saturday, December 5, 2009 10:45 PM -
Yeah I think 2 is the default setting.Wednesday, December 9, 2009 12:15 PM
-
Reno Jim solved it because his reg values correlate to grou policy stteings. That's why Rakeesh did not have those keys. which will only appear after group policy configuration from gpedit.msc. The keys Rakeesh refererd to are from start menu properties > customize the start menu GUI.
Seasons greetings!Wednesday, December 9, 2009 7:50 PM -
I had same problem - zero search results in any search in the explorer box on top right of explorer window.
Clicked on restore defaults in folder options in control panel and Bingo all working again.
Using w7.
J
Tuesday, August 10, 2010 8:00 AM -
FIGURED IT OUT:
There's a registry key:
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced
In this key there are two values (both hex dword)
Start_SearchFiles
Start_SearchPrograms
Uninstalling Windows Search sets the value of both of these to zero, when they default to something else. However, reinstalling Windows Search does not restore them to their default setting like it probably should. By manually setting both of them to 1, it re-enabled the windows search function from the start menu. Somebody might want to notify one of the Microsoft software engineers that they should correct this issue so that reinstalling Windows Search properly configures this registry key back to its default setting, that way if anybody else does what I just did they'll avoid the same headache I went through. (I don't know how to contact them myself.)
I am using Windows 7 but I think this issue probably applies to Vista as well.
How I came to this conclusion :
Reno Jim's suggestion that I try under a different account lead me to the solution. Noticing that it worked under a different account, I figured were going to be looking under HKEY_CURRENT_USER. Given that the start menu is a part of explorer, I navigated down to software/microsoft/windows/currentversion/explorer, and looking through a few different keys I noticed these two interestingly named values under the "advanced" key. Googling their names lead me to a tweak site that showed what they do, and apparently setting them to zero results in the situation I was in.
You my friend are a genius!! thank you so much!!!Saturday, August 28, 2010 7:40 AM -
Nothing of the above worked for me (didn' try the latest solution by Moderator Arthur though), but i did find a workaround for my problem.
As it turned out the search wasn't working when i navigated to "my documents" through the "libraries" in the "folder tree view". When i navigated to my docs from root directory myself, it is working fine.
Anyone know how come?
Q.
Thursday, August 18, 2011 11:01 AM -
I had similiar issue, but for specific directories there were no results, even when using *.*, yet one directory level up it would work, but exclude that specific directory.
Seems that SYSTEM group/user was missing in the security settings for that particular folder, so I guess "search" was unable to access them.
Fixed by right click, select properties.
if SYSTEM is missing, Select security and click on EDIT, then ADD.
type SYSTEM into text box and "check names", then OK.
You might need to update the permissions for system as well.
After this the location could now be searched.
Press any key to continue... where's the "any" key?Wednesday, November 23, 2011 12:55 PM -
thanks ZERO Tolerance! this work to me!Thursday, November 24, 2011 8:05 PM
-
SIMPLE SOLUTION (for me, at least). I ran into this problem where the Start search box only returned results from the start menu. I looked through the suggested registry keys and didn't find them, rebuilt my search index, etc., and eventually checked the Start Menu properties (Start, right-click on background around search box, select "Properties"). Click "Customize" to check the options. I found in my system that "Search other files and libraries" was set to "Don't search". I changed that to "Search with public folders", and the problem was solved. Note that this is the default setting for the search box, so you can use the "Use Default Settings" button at the bottom left if you want to set all the start menu options to their default. Worked like a charm.
- Proposed as answer by BigJohnnyO Friday, June 22, 2012 12:23 PM
Friday, June 22, 2012 12:21 PM -
Hi!
First, thanks a lot for your time and your answers!
Unfortunately none of them worked for me.
Here's what I did:
I had two hard disk partitions.
I formated "C" and reinstalled Windows 7. I kept the other partition for all my documents, etc.
Now the Windows search apparently only searches in "C".
There's one thing I didn't recognize before: In my "Computer", the partition "C" has got the Windows logo on its hard disk sign, my documents-partition has none on the hard disk sign.
Has anyone got an idea what the problem might be?
AlexSaturday, July 7, 2012 12:35 AM -
Finally I got the answer!
I right-clicked on my other partition and chose "include in library".
Now my Windows search immediately involves all my partitions.
Hopefully this might help others, too.Saturday, July 7, 2012 11:40 AM -
Start_SearchFiles existed with value of 2
Start_SearchPrograms did not existset first one to value of 1, did not work
Wednesday, August 8, 2012 7:48 PM -
I imported the Windows Search Registry and it seems to have worked. Thank god, that was the most annoying problem everFriday, January 4, 2013 3:42 AM
-
FIGURED IT OUT:
There's a registry key:
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced
In this key there are two values (both hex dword)
Start_SearchFiles
Start_SearchPrograms
Uninstalling Windows Search sets the value of both of these to zero, when they default to something else. However, reinstalling Windows Search does not restore them to their default setting like it probably should. By manually setting both of them to 1, it re-enabled the windows search function from the start menu. Somebody might want to notify one of the Microsoft software engineers that they should correct this issue so that reinstalling Windows Search properly configures this registry key back to its default setting, that way if anybody else does what I just did they'll avoid the same headache I went through. (I don't know how to contact them myself.)
I am using Windows 7 but I think this issue probably applies to Vista as well.
How I came to this conclusion :
Reno Jim's suggestion that I try under a different account lead me to the solution. Noticing that it worked under a different account, I figured were going to be looking under HKEY_CURRENT_USER. Given that the start menu is a part of explorer, I navigated down to software/microsoft/windows/currentversion/explorer, and looking through a few different keys I noticed these two interestingly named values under the "advanced" key. Googling their names lead me to a tweak site that showed what they do, and apparently setting them to zero results in the situation I was in.
Bless you Rakeesh, for you are learned and wise and generous in soul to come back and share this solution. I thought I was going to need all day to fix this, and you solved it in minutes with this tip. I really did not want to have to reformat & reinstall to get this fixed, but I do need and use file search on a daily basis. Thanks again.Thursday, February 7, 2013 4:56 PM -
The most simple solution to this issue is to rebuild the index. In Windows 7, go to the start menu and in the "run" textbox, enter "index options" (without quotes), then select Adavanced and Rebuild. Editing the windows registry not only increases the risks of further problems with the operating system, but can cause dire effects on the settings that future applications need to set. Additionally, you can choose the Modify button, on the original "Index Options" dialog box, and simply remove the directories that you no longer want indexed. The few additional minutes (or seconds in most cases) that indexing saves, is not worth the trouble it can cause in the long run, in my opinion.Tuesday, April 23, 2013 6:36 PM
-
try this!IT WORKS. Go in INDEXING OPTIONS in control panel.click on modify. go to c:/ users /my computer/my documents...tick on it ..
also tick on Documents and whatever files you want to include when you search...this will include all files in documents in your search results!
Friday, August 30, 2013 8:08 PM -
Thank you Rakeesh,
Suffered with this problem for 2 years, Just changed the 2 registry keys and now i'm back to normal. Thumbs up!
Monday, November 24, 2014 7:59 AM -
I added the SYSTEM user as I was having the same issue on a Windows Server. This resolved my issue.Monday, March 9, 2015 9:39 AM
-
[SOLVED]
So in my case i was doing a search on a specific hard drive on my computer.
In the top right corner of my "explorer.exe browser" you can write search terms.
If i did a search on C drive it worked.
If i did a search of F drive it said "no items match your search".I had been using F on an other operating system , as far as i could tell ,
the solution was to take ownership of F. It worked.
Taking ownership of an hard drive:
In "explorer.exe browser" find the hard drive you are having search issues with.
Right click it and request "properties".
Left click the tab "Security".
Left click the button "Advanced".
Left click the tab "Owner".
Left click the button "Edit".
There is a window in the middle bottom that contains various users;
Select you. Usually there is an administrator account and then your account.
In my case i just selected my account :
[Computer Name]\[User Name]
[Computer Name]\Administrators
Example:
If you computer was named "Donald Duck" and your User name is "Howard" then it would look like:
Administrators (Donald Duck\Administrators)
Howard (Donald Duck\Howard)
Again, in that case i selected "Howard (Donald Duck\Howard)"
Once i left clicked "Howard (Donald Duck\Howard)"
then i turned on the option "Replace owner on subcontainers and objects"
that is located in the bottom left corner of same screen.
The only risk here is if you are using that hard drive with ANOTHER operating system that stores critical files there such as installed programs , critical directories ("program files" , "windows" , ...)
So now when you press the apply button in the lower right corner you are taking ownership of every single last thing on that hard drive.
...and that is how solved my issue.Monday, December 7, 2015 12:29 AM -
I want to thank you for this fix, I've had this problem for at least a couple of years and not even the help desk was able to help me, they thought it was a virus. After manually setting Start_searchFiles and Start_SearchPrograms to 1, it started working again.
Victor V.
Tuesday, December 8, 2015 5:32 PM -
For me what worked was changing the way windows searched. (Windows 10)
Searched in start menu: "search"
Click "change search options..."
Tick "don't use the index while searching in file folders for system files"
Somehow Windows 10 was reading my entire HDD as a system file, i don't know what this means but it worked.
Tuesday, February 2, 2016 8:50 AM -
Hi,
You may try to rebuild the index to check the issue.
Arthur Li - MSFTArthur, your link seems to be dead. I couldn't find the page to which you intended to refer. This is how I requested an index rebuild:
1. c:\>control /name Microsoft.IndexingOptions
2. Advanced/Index Settings/Troubleshooting/Rebuild
Friday, January 20, 2017 8:15 PM -
I too disabled search and then changed my mind. Reindexed and then again this time making sure windows was included and still nothing. Setting these two registry entries from 0 to 1 made search work again. Don't need to search public folders which is 2.
Thx
Sunday, May 21, 2017 7:46 PM -
In my case, the problem had to do with my directory/folder structure. I was attempting to search a folder which apparently had too long a path. Not wanting to meddle with the organization of the folders, I simply mapped the directory as a network drive & then tried to search from that new network drive. Voila! The search worked just fine. When I was done, I disconnected the mapped network drive.
So anyways, the above is not, per se, an actual solution or "fix"; but it is, rather, a work-around. While I accomplished my goal for the day, the contents of such folders will still not appear in a standard search of the drive. The limitation of the length of a path is a frustrating yet commonly known issue; and so generally speaking, it is best practice not to exceed the maximum length of a path (255) which has been the same since Windows first came into being. When "best practice" is defined by ineptitude or shortsighted limitations, people will undoubtedly debate what actually is best. They are not wrong to do so, I think. I am keeping my organized directories, thank you very much. Lol.Anyways, Windows 10 is supposedly going to fix this; but the "fix" is, as of yet & to my understanding, not fully functional. I mention this only to say that there are no plans to fix this for Windows 7.
Wednesday, September 12, 2018 5:01 AM