What's wrong with this search?

If you are experiencing problems with "Everything", post here for assistance.
Post Reply
terrypin
Posts: 208
Joined: Mon Mar 18, 2013 2:41 pm

What's wrong with this search?

Post by terrypin »

I want to find all files which match door*.ino on drive D: OR cube*.ino on drive C:

Why doesn't the following work please:

door*.ino d: | cube*.ino c:
NotNull
Posts: 5461
Joined: Wed May 24, 2017 9:22 pm

Re: What's wrong with this search?

Post by NotNull »

Using the default Everything setting, OR is "stronger" than AND.
terrypin wrote: Wed Oct 23, 2019 3:53 pm door*.ino d: | cube*.ino c:
For your search this will mean:
( D: OR cube*.ino ) AND door* AND c:

Subtitled: search all files that are on D: or are named cube*.ini
From the results, only use the ones that are on C: (that will undo the D: search)
The remaining results (cube*.ino) should also match door*.ino (and that will likely result in 0 matches)

You can use command grouping (see the Search Help page) to influence the order:

Code: Select all

<door*.ino  d:> | <cube*.ino  c:>

Alternatively, you can mae AND "stronger" than OR, by changing the Operator precedence (under Menu:Tools > Options > Search
terrypin
Posts: 208
Joined: Mon Mar 18, 2013 2:41 pm

Re: What's wrong with this search?

Post by terrypin »

Thanks NotNull, understood. Forgot about grouping.
Post Reply