Exclude "file type" from search

Page 2 of 3 FirstFirst 123 LastLast
  1. dalchina's Avatar
    Posts : 30,045
    Win 10 Pro (1903)
       #11

    Hi, in file explorer try e.g.
    content:doc

    to find files containing doc but not files of type doc or docx.

    (Note- naturally you need the appropriate ifilters installed for the document types you're interested in to index content, as well as having the relevant folders specified in Indexing Options and content indexing enabled).
      My Computers


  2. Posts : 136
    Win10 Pro x64 1607
       #12

    dalchina said:
    Hi, in file explorer try e.g.
    content:doc ...
    That seems to work!!!
    THANKS!!!:)
      My Computer

  3. dalchina's Avatar
    Posts : 30,045
    Win 10 Pro (1903)
       #13

    Interestingly it's not shown in the Advanced Query Syntax description- perhaps there's a later version.
      My Computers

  4. Kari's Avatar
    Posts : 17,434
    Windows 10 Pro
       #14

    dalchina said:
    Hi, in file explorer try e.g.
    content:doc

    to find files containing doc but not files of type doc or docx.
    Exactly.

    To search for files containing string word, simply search for content:word. To search for files containing both strings word and doc, search for content:word AND content:doc.

    To search for files where string word is either in file name or file content excluding documents with extension starting with .doc, search for word NOT ext:doc.

    Notice that logical operators AND, OR, NOT must be in upper case. If written in lower case, they will be taken as strings you are searching for instead of logical operators. They can be combined, for instance searching for files containing either the string word or the string doc but excluding those files created last year, search for content:word OR content:doc NOT datecreated:2016.

    Kari
      My Computer


  5. Posts : 33
    windows 10
    Thread Starter
       #15

    Success!


    Ah, thank you!

    This performed the search I wanted:
    content:word AND (ext:doc OR ext:docx)

    Is there a web page that lists the limiters ('content', 'ext', and so on)?

    How unhelpful for File Explorer help to not have this, or at least not make it easier to find.
      My Computer

  6. Kari's Avatar
    Posts : 17,434
    Windows 10 Pro
       #16

    enso said:
    Ah, thank you!

    This performed the search I wanted:
    content:word AND (ext:doc OR ext:docx)

    Is there a web page that lists the limiters ('content', 'ext', and so on)?

    How unhelpful for File Explorer help to not have this, or at least not make it easier to find.
    ext:doc OR ext:docx is unnecessary, ext:doc already covers all extensions with three or more characters starting with doc.

    As David mantioned in post #4, this tutorial although made for Windows 7 is still mostly valid: Search - Find More with Filters and Operators - Windows 7 Help Forums

    Kari
      My Computer


  7. Posts : 33
    windows 10
    Thread Starter
       #17

    I took a look at that link, but it does not contain the filter that was crucial to my question: content

    If anyone knows of an even more complete list, please share the link.
      My Computer

  8. dalchina's Avatar
    Posts : 30,045
    Win 10 Pro (1903)
       #18

    I mentioned this above by name, which covers a lot of ground, and commented on the apparent omission and need for something more recent:
    Advanced Query Syntax (Windows)

    However, I do think that not having an intuitive GUI based search and using something akin to a command line syntax, means using search more fully is restricted to the minority of users. Only if you have an exceptional memory or frequently use such syntax is this readily available to you as a useful tool.
      My Computers

  9. Stevekir's Avatar
    Posts : 340
    Windows 10 Home 64 bit (with Creators OS)
       #19

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

    Attachment 149744
    Werby: Could you please tell me the name of the annotation/markup software you used in the above post. I used this until a crash a few months ago and have lost it and its name.

    Thanks.
      My Computer


  10. Posts : 136
    Win10 Pro x64 1607
       #20

    Hello Stevekir,

    It's "FastStone Capture" (not free).
      My Computer


 
Page 2 of 3 FirstFirst 123 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 04:38.
Find Us




Windows 10 Forums