Searching for specific group of words in html file in Windows Explorer

Page 1 of 2 12 LastLast
  1. DickinSD's Avatar
    Posts : 18
    Windows 10 Pro
       #1

    Searching for specific group of words in html file in Windows Explorer


    Back again to the fountain of experience. I'm trying to find "currently no text" in files in one folder. I know there to be many files containing that exact phrase in this folder. I've gone into Settings/Search Options/Advanced and checked "Index File Properties and Contents". I've verified "html" is in the list of file types, with filter identified as "HTML Filter". Then I rebuilt the (22330 items) index. Then retarted. I've tried 'content:"currently no text"' and 'keywords:"currently no text"' (ideas seen elsewhere online) in the search box. Nada. Then I went back into Explorer/View/Folder Options/Search and checked "Always search file names and contents...". Restarted. Nada. Thoughts? Think I need to rebuild the index again after having made the change in Folder Options? Windows 10 Pro v.1909
      My Computer

  2. dalchina's Avatar
    Posts : 29,843
    Win 10 Pro (1903)
       #2

    Hi, worked for me (in 1903- I reverted from 1909 given the file explorer search issues) - after I added the folder containing html files to the folders being indexed as they weren't currently being indexed.

    You might try watching the number of items indexed in Indexing Options, deselecting the folder of interest, see the number of items indexed decrease, then the converse.

    I think these show the conditions necessary, preceded by an example of successful content search (note the "" around the search string on the left, html document on the right)

    Searching for specific group of words in html file in Windows Explorer-1.pngSearching for specific group of words in html file in Windows Explorer-2.pngSearching for specific group of words in html file in Windows Explorer-3.pngSearching for specific group of words in html file in Windows Explorer-4.png
      My Computers

  3. DickinSD's Avatar
    Posts : 18
    Windows 10 Pro
    Thread Starter
       #3

    Interesting thought -- I'll try it tonight!

    - - - Updated - - -

    Tried that last night, and saw Items Indexed drop by approximately the number of files in that folder (there were over 8000 so easy to recognize whether gone or not!). Further thoughts?
      My Computer

  4. dalchina's Avatar
    Posts : 29,843
    Win 10 Pro (1903)
       #4

    You are using build 1909- not 1903- and MS made changes to file explorer search. However I've not heard of your particular symptom.

    I suggest you put a txt file in the same folder with the text string in that, check the indexed items increments, then search for your string.

    That will prove that contents are being indexed in that folder.

    Post a screenshot of what you're seeing including how you are formulating the search.

    Note you can e.g. search for
    type:txt "---- some text string----"
      My Computers

  5. DickinSD's Avatar
    Posts : 18
    Windows 10 Pro
    Thread Starter
       #5

    OK -- created "New Text Document" containing only "Currently no text" This is the phrase found in numerous files in this folder. For example, see first image in attached (I think I did it right) doc file with screen shots. This is an html file. The next image down is the search run using 'content:"Currently no text"' It found the text file but nothing else. The next one was with 'type:txt "Currently no text"' Again, just the text file.
    Searching for specific group of words in html file in Windows Explorer Attached Files
      My Computer

  6. Try3's Avatar
    Posts : 7,387
    Windows 10 Home x64 Version 20H2 Build 19042.868
       #6

    Given the current problems with File explorer search [ver 1909] you might be best off sitting it out until MS fix the problems and then see how your particular type of search behaves.

    In the meantime, you could use a third-party search utility. There are lots to choose from. I use NirSoft's SearchMyFiles and it can handle what you want to do.

    Denis
      My Computer

  7. dalchina's Avatar
    Posts : 29,843
    Win 10 Pro (1903)
       #7

    @Try3 - could you please advise whether content search in .html works in 1909? Thanks.

    @DickinSD Your screenshots seem to be some sort of saved web search. There's only one image.

    The appropriate way to upload a screenshot (as I did for you) is to use the icon above your post left of the video icon, tooltip 'Insert Image'. If you need more help there's a tutorial (in the Tutorial section) on how to create and upload a screenshot.

    The next image down is the search run using 'content:"Currently no text"' It found the text file but nothing else. The next one was with 'type:txt "Currently no text"' Again, just the text file.
    This sounds as if content search is enabled for that folder and is working for txt files.

    I suggest now you work back through the tick boxes needed for html indexing and check them, and also upload one of your html files. You may need to zip it to upload it as only certain file types are permitted. To upload it as an attachment use the paperclip icon above your post.

    Note that search in file explorer is not case sensitive.

    Are you certain the text you are searching for is text, not part of a graphic (image)?
    Last edited by dalchina; 23 Feb 2020 at 00:54.
      My Computers

  8. Try3's Avatar
    Posts : 7,387
    Windows 10 Home x64 Version 20H2 Build 19042.868
       #8

    dalchina said:
    @Try3 - could you please advise whether content search in .html works in 1909?
    dalchina - Yes, it works for me at the moment.

    DickinSD - see How to Upload and Post Screenshots and Files - TenForumsTutorials

    Denis
      My Computer

  9. DickinSD's Avatar
    Posts : 18
    Windows 10 Pro
    Thread Starter
       #9

    Dalchina: Jumping to the question at the end of your response, since I can "select" text out of that sentence, I presume it to be actual text, and not an image. A portion of the file is shown below. I'll work on the rest of your points later today. I've tried to insert the actual file, following the guidelines in the tutorial, with the extension changed to jpg, but the file doesn't show up when I press "Upload." I'll keep trying.

    <div class="noarticletext">
    <p>There is currently no text in this page.
    You can <a href="/wiki/index.php?title=Special:Search/GlTexCoord3sv" title="Special:Search/GlTexCoord3sv">search for this page title</a> in other pages,
    <span class="plainlinks"><a href="http://qb64.net/wiki/index.php?title=Special:Log&amp;page=GlTexCoord3sv" class="external text" title="http://qb64.net/wiki/index.php?title=Special:Log&amp;page=GlTexCoord3sv" rel="nofollow">search the related logs</a>,
    or <a href="http://qb64.net/wiki/index.php?title=GlTexCoord3sv&amp;action=edit" class="external text" title="http://qb64.net/wiki/index.php?title=GlTexCoord3sv&amp;action=edit" rel="nofollow">edit this page</a></span>.
    </p>
      My Computer

  10. dalchina's Avatar
    Posts : 29,843
    Win 10 Pro (1903)
       #10

    Please zip the file- 7-zip is free if you don't have a compression program. Then upload that using the paperclip or Go Advanced below your post. The site may be sensitive to certain file formats- not just extensions.
      My Computers


 
Page 1 of 2 12 LastLast

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




Windows 10 Forums