Windows 7 search sucks! I am trying to locate files in a specific directory that have the word “short” contained INSIDE the file. These files are .XML files. The files are not in one of the typical indexed directories so I did the following.
From a Windows Explorer window I selected the menu “Tools | Folder Options” and selected the “Search” tab. (See FolderOptions.JPG below.)
Next, I went to “Control Panel | Indexing Options” clicked on “Modify” to add the directory to the list of those to be indexed. (See IndexLocations.JPG below) As you can see, my target directory is in the list.
I closed that window and clicked on “Advanced” and switched to the “File Types” tab. I scrolled down to the XML file type and made sure it was selected and that the radio button for “Index Properties and contents” was selected. (See AdvancedOptions.JPG below.)
I then switched back to the “Index Settings” tab and rebuilt the index.
I then went to the target directory and in the search box in the upper right I typed “short” without the quotes and got back no results.
From a command prompt, I can navigate to the target directory and typeand immediately get results.Code:FINDSTR -I ”short” *.XML
So why can’t Win7 search find these? I can open a generic Win7 search using Windows Key+F and type “short” in the search box and Win7 will find some XML files containing “short” in the “My Documents” folder, but not my target folder.
Anyone have any ideas OTHER than a third party tool? I want to master Win7 search not replace it.
Gary
-
ScuderiaConchiglia NBR Vaio Team Curmudgeon
Attached Files:
-
-
I don't have an answer to your question, but I agree that the built-in search is horrible. I have no problem replacing it with a 3rd-party application.
Good luck with your quest. -
Hmm, obvious question: Have you checked that indexing has actually had time to index that new folder? The new indexing service is really conservative, and may not start re-indexing stuff until the computer has been idle for a while. During that time, you will not be able to search for file contents. Other than that, it is also possible that the xml filter you have is broken. I think Windows 7 does not come with a native xml filter, so the filter has to be provided by a third-party application. I have found that sometimes these filters are simply broken, so you'll never be able to search files for contents.
-
ScuderiaConchiglia NBR Vaio Team Curmudgeon
I wonder if this might be an issue that my target directory is not part of my "Libraries". I will try that latter, by adding that folder to the documents library.
GaryAttached Files:
-
-
I like Vista's built-in search... so unless they ruined it in Win 7, I think there's another problem.
First, is that word part of the xml markup or part of the document? I don't know but it wouldn't surprise me if the iFilter is designed to skip markup (anything between angle-brackets)... since in XML "theory" that's not considered part of the document.
Secondly, try pressing Win-F and searching from that window. From there try using Advanced Search > "Include non-indexed, hidden and system files (might be slow)". -
The search sucks, astonishingly poor, it isn't anything you're doing. I think the only option is to test different 3rd party replacements and not waste your time with it. I downloaded "Search Everything" to try as a freeware replacement. Anyone have any good recommendations?
-
Windows Explorer - > Win+F
There is no advance search or for that matter any other search options. It's basically Windows Explorer without a directory listing. -
ScuderiaConchiglia NBR Vaio Team Curmudgeon
As said above, there is no "Advanced Search" in Win7. That's part of the issue.
Gary
I just tried adding the target directory to my Libraries | Documents. It had no effect. It still finds the word ONLY in XML files in the My Documents directory or sub directories.
This is just asinine.
Gary -
What is really strange is that this works for you in your My Documents tree, but not outside of it. That means it is clear that the search filter itself is working fine.
P.S.: Edit: I have to partially retract what I said above: While the underlying engine is the same, the Search UI has been remarkably crippled in Win7. Can you try and see if you can find what you are looking for when using Advanced Query Syntax? More information in a perhaps friendlier format is here.
But, yes, it really looks like the interface to Windows Search that is included In Windows 7 is a disaster, plain and simple. What we should be looking for now is a third-party application that interfaces with Windows Search, but presents the old Vista Advanced Search pane. This should really be very easy to code, but I haven't found anything like that, yet.
-
ScuderiaConchiglia NBR Vaio Team Curmudgeon
I am baffled. Especially give that the search works fine for files in the My Documents folder structure.
If you do find a better UI for the search engine, please let me know.
Gary -
ScuderiaConchiglia NBR Vaio Team Curmudgeon
Pirx,
I ran a query using the advanced syntax restricting the search to documents only and with a filename having an extension of dot XML. Still found stuff via My Documents but not the target folder (named METADATA). See the first two attachments below.
This is getting more odd. Look at the last two attachments. The first one shows the current state of what folders are in the Library named documents. Now look at the last attachment and not in the path window that it thinks my METADATA folder is in that library. It was for a short while last night, when I was testing to see if that had any affect on the search. But when it did not, I pulled the folder from the library. And yes, I have rebooted since.
GaryAttached Files:
-
-
Something is really wrong here. This almost looks like your index is corrupt. In case that is true, one more suggestion, as a radical solution, would be to try and rebuild your search index from scratch. There is an option for doing that in the Indexing Options applet in the Control Panel. You might want to try that (I know, it'll take a long time).
-
ScuderiaConchiglia NBR Vaio Team Curmudgeon
Gary -
-
ScuderiaConchiglia NBR Vaio Team Curmudgeon
I've had to resort to dropping out to a command prompt and using good old FINDSTR.
Gary -
ScuderiaConchiglia NBR Vaio Team Curmudgeon
A little more info. Coolyguy (aka Rajesh) and I have been playing with this a bit more today.
If I go up to the parent directory of my target directory, in this case the target is "FUBAR\METADATA", so I go to FUBAR and search for "short" there. I get no results initially. But in the center pane there is a "Search again in:" with icons for Libraries, Computer, Custom, Internet and File Contents. I also see a yellow bar across the screen telling me "Searches might be slow in non indexed locations..." and offers to let me add the location to the index. I decline that offer and click the aforementioned File Contents icon and voilà I get search hits aplenty from the child METADATA folder and METADATA's various child folders as well..
If I go back to the target "METADATA" folder and repeat this, I get no warning about non-indexed locations (as expected since this folder IS indexed) I see all of the icons mentioned above EXCEPT for the File Contents icon (again as expected since "METADATA" is indexed). And I see NO results. Not expected. Anticipated, but not expected.
Search is BROKEN, my friends. Plain and simple. It is BROKEN.
Gary -
My other favorite search program is File Finder, but it's part of PowerDesk. Nice search program, not a good File Manager. The nice thing about File Finder is that once you do a search, it keeps everything temporarily in memory, so the next search is as quick as your memory allows.
IMO, I would rather have more search options than have parts of the hard drive indexed for speed. What good is speed if you can't find what you are looking for. -
On the plus side, I have been whining quite a bit to the Opus developers about how Opus should really use the underlying Search engine of Windows Search, and they told me that this is on their list of features for Opus 10. So there is hope, I hope...
Oh, just one more question: The folder you are talking about doesn't happen to be attached to your filesystem via reparse points (a junction, or a symbolic link)? If that was the case, it would explain your issues. Windows Search (intentionally) does not cross reparse points. One of the nasty consequences of Microsofts belated, and half-hearted, implementation of such filesystem constructs.
P.S.: Oh, and I should mention that we may have to thank our oh-so-beneficial friends at Google for this situation: Some of you may remember that Google in fact had forced Microsoft to partially remove some of Vista's search functionality so that Google can more easily foist their half-baked crap on people. Thanks a lot, guys, for not being evil... -
ScuderiaConchiglia NBR Vaio Team Curmudgeon
Gary -
-
I usually kill all crap in Windows but since i had 4gb new W7 i let it manage itself,let indexing ON etc... then i started to find that windows search didn't found many file i know i had... in short search is broken.
-
-
With regards to the indexing service; I believe it is not recommended to have the indexing service path include C: or any other frequently changing directory. That can exclude a lot of locations where indexing doesn't do any good. Which means that it's going to be doing a brute force method a lot of the time. The trade off is allowing C: to be indexed for static searches, but without consistently rebuilding and rebuilding the index, many searches could come up short.
Of course, this presumes that Windows 7 search is working correctly.
Any word on when Directory Opus v10 will be released? I might wait until then before upgrading. -
-
ScuderiaConchiglia NBR Vaio Team Curmudgeon
Mystery solved! Well not so much solved but certainly more understood.
After the conversation here with Pirx (thanks again and +rep), I thought the issue might be that the target folder name METADATA was a UAC virtualized folder. It was a folder the application, under Win XP or an earlier OS, would have been written as the C:\program files\fubar\METADATA folder. But with UAC virtualization of the program files directory it winds up as C:\Users\Gary\AppData\Local\VirtualStore\Program Files\fubar\metadata.
In my first experiments with this, I was adding that virtual directory to the list of indexed locations and rebuilding the index. But I could never get search hits in that folder. Today I made a copy of the METADATA folder to D:\METADATA. Then with Windows Explorer I opened that folder. I tried a search which then, as expected, gave me the yellow banner across the page to tell me it might be slow since the folder was not indexed and offered to let me add it to the index. I took that option and closed the entire window. I went to Control Panel | Indexing options and verified that the folder was listed as an indexed location and waiting for the indication that indexing was complete, just a few seconds.
I then went to the start menu and typed "short" (my targeted search word) and then lo and behold I got hits in the D:\METADATA folder!!!!
So the issue is one of two things.
A. The virtualized folder was not REALLY getting indexed despite being added to the indexed locations.
B. The ridiculously lame, asinine, incomplete, useless search UI refused to return hits to the virtualized folder.
....Rant mode on...
Oh, just in case there is any doubt, I think the Win7 Search UI is the single WORST piece of code I have ever seen come from Microsoft. It is a giant step backwards into the the arcane world of command line interface that Windows was designed to replace. It is ridiculous to force users to remember this long list of keywords and options. "Advanced Search Syntax"
...Rant mode off...
Gary
Win7 search woes.
Discussion in 'Windows OS and Software' started by ScuderiaConchiglia, Mar 25, 2010.