Can't search for contents in Windows Explorer

Page 1 of 2 12 LastLast

  1. Posts : 948
    windows 10 professional 64-bit, 22H2
       #1

    Can't search for contents in Windows Explorer


    I've never been able to search file contents in a folder. I've rebuilt my index; I have the indexing options set to search the users folder, except for appdata. And I have Index Options>most File types & e.g. ".doc" files are set to "Index Properties and File Contents".
    Yet when I'm in a Windows Explorer window & search for a word, it will only find files with that word in the name, not files that contain the word.
    I've attached two images of my settings. I also tried https://answers.microsoft.com/en-us/...3-9acc170481ac suggestion of powershell: $manifest = (Get-AppxPackage Microsoft.WindowsStore).InstallLocation + '\AppxManifest.xml' ; Add-AppxPackage -DisableDevelopmentMode -Register $manifest but it didn’t work. I also used sfc & it found no problems.
    Any suggestions?
    Thanks in advance!Can't search for contents in Windows Explorer-indexing-options.pngCan't search for contents in Windows Explorer-indexing-options2.png
      My Computers


  2. Posts : 9,792
    Mac OS Catalina
       #2

    what are you using as your search context and what type of files are you looking for? Anything that you create will be in My Documents, unless you save them in subfolders by type. The other folder would be OneDrive.
      My Computer


  3. Posts : 11
    Windows 10
       #3
      My Computer


  4. Posts : 1,773
    Windows 10 Home
       #4

    Instead of frustrating yourself with Explorer, try this tiny program which can build a 1 million file database in less than a minute and gives you more search options and almost instantaneously results - https://www.voidtools.com/
    Reputable site endorsement - https://www.howtogeek.com/fyi/this-f...-explorer-can/
      My Computer


  5. Posts : 43,017
    Win 10 Pro (22H2) (2nd PC is 22H2)
       #5

    I think 'Everything' does not index file contents, the prime focus of the question. (I use Locate32, which functions similarly - both offer excellent find-as-you-type features far better than file explorer). Both are free, and Locate32 adds option text file searches.

    Turning to file explorer contents search: which I can assure you works, rather than there being some Win 10 bug.

    What are the conditions for contents search to work? I think you know most:
    a. File must have been indexed
    b. File and folder must have content indexing permitted
    c. Content indexing must be allowed for that file type in Indexing Options, Advanced Options, File types
    d. There must be an appropriate ifilter for the file type in question
    e. File explorer must be open at a point in the file hierarchy above the file sought

    Please post screenshots showing file explorer open at a point above the (doc) file sought, the search string used, the string in the file containing the search string, and that content indexing is allowed for that file (Properties) and that folder.

    Can't search for contents in Windows Explorer-1.jpg

    Please monitor the number of items indexed, then add a doc file to the folder in question. Confirm the number of items indexed increments.

    That Powershell command is totally irrelevant.

    To reset search indexing see
    Rebuild Search Index in Windows 10 | Windows 10 Tutorials
    Option 3- The downloadable .bat file below contains these commands that will reset your indexed locations to default and rebuild the search index.

    Example of doc file found by content:
    Can't search for contents in Windows Explorer-1.jpg


    Thanks.
      My Computers


  6. Posts : 1,773
    Windows 10 Home
       #6

    "I think 'Everything' does not index file contents, the prime focus of the question. "
    Sorry, I misunderstood this part - "when I'm in a Windows Explorer window & search for a word, it will only find files with that word in the name, not files that contain the word."

    dalchina; you're correct. I tested Everything with a name that I knew was in a spreadsheet and pdf & it produced no results. I then searched in File Explorer and the results came up immediately ! My indexing screens look just like his too, except I don't have his Office app locations. If he's rebuilt his index, I'm not sure what else he can try other than to rebuild it again.
      My Computer


  7. Posts : 43,017
    Win 10 Pro (22H2) (2nd PC is 22H2)
       #7

    We need to see phrab work through my post. It only takes, for example, content indexing to be disabled on the relevant folder(s) for it not to work. And it might be that the ifilter needs reinstalling, if only 1 file type isn't being content indexed.
      My Computers


  8. Posts : 948
    windows 10 professional 64-bit, 22H2
    Thread Starter
       #8

    dalchina said:
    Turning to file explorer contents search: which I can assure you works, rather than there being some Win 10 bug.
    What are the conditions for contents search to work? I think you know most:
    a. File must have been indexed
    b. File and folder must have content indexing permitted
    c. Content indexing must be allowed for that file type in Indexing Options, Advanced Options, File types
    d. There must be an appropriate ifilter for the file type in question
    e. File explorer must be open at a point in the file hierarchy above the file sought

    Please post screenshots showing file explorer open at a point above the (doc) file sought, the search string used, the string in the file containing the search string, and that content indexing is allowed for that file (Properties) and that folder.

    Can't search for contents in Windows Explorer-1.jpg

    Please monitor the number of items indexed, then add a doc file to the folder in question. Confirm the number of items indexed increments.

    That Powershell command is totally irrelevant.

    To reset search indexing see
    Rebuild Search Index in Windows 10 | Windows 10 Tutorials
    Option 3- The downloadable .bat file below contains these commands that will reset your indexed locations to default and rebuild the search index.

    Example of doc file found by content:
    Can't search for contents in Windows Explorer-1.jpg
    Thanks.
    Thank you for your response! I'm not sure that I understand what screenshots you mention. Dalchina. In my original post, I showed that the Users folder is contained in my indexing options. The Documents folder is in the path: C:\Users\Phil\Documents & there's a subfolder called Bridge.
    If I right click Bridge & choose Properties/Advanced, I get this image:Can't search for contents in Windows Explorer-bridge-properties.png
    If I search for the word "attitude", this is an image of the results: Can't search for contents in Windows Explorer-search-results_bridge.png
    The word "attitude" is present in several of the .doc files that are in this subfolder. If I misunderstood what screenshots you're talking about or you want to see additional ones, please let me know. I have rebuilt my index several times, but with the same results.

    Wait, I just added a new .doc file with the word "attitude" in it, to my Bridge subfolder. That file now shows up in search results. However, all my other files in that subfolder do not show up. And I just checked another file & it doesn't have the "Allow this file to have contents indexed in addition to file". This means that all my hundreds (thousands?) of files do not have this attribute set, even though the folder does.

    How can I set this attribute for all the files in the Users folder without doing each one individually? [These files all were copied from my old Windows XP machine.]
      My Computers


  9. Posts : 43,017
    Win 10 Pro (22H2) (2nd PC is 22H2)
       #9

    However, all my other files in that subfolder do not show up. And I just checked another file & it doesn't have the "Allow this file to have contents indexed in addition to file". This means that all my hundreds (thousands?) of files do not have this attribute set, even though the folder does.
    Ok, you've now almost certainly got the explanation for the problem you're experiencing .... and you can hopefully see the logic that led to that.

    How can I set this attribute for all the files in the Users folder without doing each one individually?
    You need to select all the files whose attribute you wish to change, then rt click 1 of them, then change the indexing attribute.

    That should change it for all of them (just tried it).

    I don't know if you'd need to rebuild the index, or whether search indexing will respond (after a short while) and update the index. Try it..
      My Computers


  10. Posts : 948
    windows 10 professional 64-bit, 22H2
    Thread Starter
       #10

    dalchina said:
    Ok, you've now almost certainly got the explanation for the problem you're experiencing .... and you can hopefully see the logic that led to that.
    You need to select all the files whose attribute you wish to change, then rt click 1 of them, then change the indexing attribute.

    That should change it for all of them (just tried it).

    I don't know if you'd need to rebuild the index, or whether search indexing will respond (after a short while) and update the index. Try it..
    Thank you so much!! I changed 2 attributes: hidden & index contents. It now seems to be working. I don't know why all (or most) of my files in my Documents folder were hidden or if that had anything to do with it. I just checked my Windows XP machine & I never used the Indexing system there, so ALL copied files didn't have the option set.

    For some reason, I had to close my Explorer window & reopen it, in order to the search index to work, but it is working now.

    Only strange thing is that when I right click the Documents folder or a subfolder in Documents, it shows the "Read-only" attribute set...however, the files themselves are not read-only.
      My Computers


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 08:34.
Find Us




Windows 10 Forums