Exclude "file type" from search

Page 1 of 3 123 LastLast

  1. Posts : 36
    windows 10
       #1

    Exclude "file type" from search


    I need to find all the files that contain the word "word" in them. When I try to search in File Explorer, I get all the files that are Microsoft Word files. How do I search for matches on only content within the file?


    I need to find all the files that contain the word "word" in them. When I try to search in File Explorer, I get all the files that are Microsoft Word files. How do I search for matches on only content within the file?
      My Computer


  2. Posts : 26,453
    Windows 11 Pro 22631.3527
       #2

    Exclude "file type" from search-capture.jpg

    Maybe remove the checkmark where circled and search *.word
      My Computer


  3. Posts : 136
    Win10 Pro x64 1607
       #3

    enso said:
    I need to find all the files that contain the word "word" in them. When I try to search in File Explorer, I get all the files that are Microsoft Word files. How do I search for matches on only content within the file?
    Hi,
    Click on Search field.
    You'll see the "Search Tools" menu, click on "Search->Advanced options" and...voila!

    Exclude "file type" from search-search.jpg
      My Computer


  4. Posts : 1,524
    Windows 10 Pro (32-bit) 16299.15
       #4

    You could put something like this in the search box:
    Code:
    word NOT(ext:docx OR ext:doc OR ext:docm)
    Kari did a tutorial over on Sevenforums on file explorer searching. Although it's a few years old, I believe it all still applies in Windows 10.
    https://www.sevenforums.com/tutorial...operators.html
      My Computer


  5. Posts : 36
    windows 10
    Thread Starter
       #5

    Josey Wales said:
    Exclude "file type" from search-capture.jpg

    Maybe remove the checkmark where circled and search *.word

    No; this does not do what I want. I do not want files with a .word extension. I want Word files that contain "word" within the text content.
      My Computer


  6. Posts : 36
    windows 10
    Thread Starter
       #6

    werby said:
    Hi,
    Click on Search field.
    You'll see the "Search Tools" menu, click on "Search->Advanced options" and...voila!

    Exclude "file type" from search-search.jpg

    No; this does not do what I want. There is nothing under advanced search options to prevent searching for "word" finding all Microsoft Word documents, instead of just the Word documents that have "word" as text within the file. I want Word files that contain "word" within the text content.
      My Computer


  7. Posts : 36
    windows 10
    Thread Starter
       #7

    DavidY said:
    You could put something like this in the search box:
    Code:
    word NOT(ext:docx OR ext:doc OR ext:docm)
    Kari did a tutorial over on Sevenforums on file explorer searching. Although it's a few years old, I believe it all still applies in Windows 10.
    https://www.sevenforums.com/tutorial...operators.html

    I do not want to exclude extensions of .doc, .docx, etc. I want them, and I want all of those that have somewhere inside the file the word "word". A search for the word "word" matches every Microsoft Word document, even ones that do not contain "word" within them. The search is matching on the file type. I can find no syntax to exclude searching on the file type field and search only the contents of the files.
      My Computer


  8. Posts : 17,838
    Windows 10
       #8

    In Advanced Indexing Options uncheck to exclude .word file types if listed

    Exclude "file type" from search-000143.png
      My Computer


  9. Posts : 9,790
    Mac OS Catalina
       #9

    If you have not specified a specific folder for Office documents, they get dropped into the Documents folder under your profile. Boolean searches of if, and, or, = have always worked. If you want to narrow the searches down to a specific file, you need to put in keywords into the profile of the file before saving. I would also suggest setting up sub-folders in Documents for say Word, Excel, Power Point, etc.
      My Computer


  10. Posts : 136
    Win10 Pro x64 1607
       #10

    enso said:
    .... A search for the word "word" matches every Microsoft Word document, even ones that do not contain "word" within them. ....
    Unfortunately, you're absolutely right!!!

    I've performed some tests and I first time realize that WinSearch looks for not only contents but also for the tags of a file (seen in properties/details). That's why you see documents even if they don't include given word.

    The word "word" is included in a .doc file tag as "Microsoft Office Word"
    So, exclusion of file tags on searching would make the job. BUT HOW...???
      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 11:35.
Find Us




Windows 10 Forums