Search Index Not Consistently Indexing Contents


  1. Posts : 1
    Windows 10
       #1

    Search Index Not Consistently Indexing Contents


    Hello, I think I have hit the limit of my knowledge with an issue I'm hitting and figured I would share in case anyone has any insights!

    I'm currently running Windows 10.0.19042 on this machine.

    I am using the Windows Search Index in a powershell script in order to help with some work that requires searching for guid references in a variety of plain text (YAML) files. I have used indexing options to set folders to index, exclude subfolders I don't want indexed, and set up plain text indexing for the target filetypes I want to search.

    I've noticed consistently inconsistent results for a while. I've tried re-indexing but the results are still consistently inconsistent. What I mean is, certain search terms always return all expected files while will always exclude files that should have been found. It seems that some filetypes that contain search text work with all search terms (meta files in the example below) while others do not (prefab).

    To confirm this is not just poor scripting on my part, I've tried using the explorer search and the results are identical to what I see returned from my powershell query.

    This is a case of the index working as expected, with two results, a meta file and a prefab file. Apologies for all the marking out of files, just trying to keep some work somewhat private.
    Search Index Not Consistently Indexing Contents-windowssearch_working.png

    In this other case, the meta shows up but the expected prefab file does not
    Search Index Not Consistently Indexing Contents-windowssearch_notworking.png

    And, for thoroughness, the file contents that contain the same GUID in plain text that isn't appearing
    Search Index Not Consistently Indexing Contents-filecontents_prefab.png

    Any help would be greatly appreciated! The inconsistency is what is throwing me off more than anything else and my lack of knowledge on how exactly files get indexes has me at a loss for how to continue. Feel free to request any additional information that would be helpful, I'm happy to follow up with more details.

    Thanks!
      My Computer


  2. Posts : 5,330
    Windows 11 Pro 64-bit
       #2

    Try resetting Windows Search by using the attached batch script.
    Search Index Not Consistently Indexing Contents Attached Files
      My Computer


 

  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 23:17.
Find Us




Windows 10 Forums