Again XY lists all items containing neither "a" nor "b", but XY's Find Files remains under "Standard" mode.
Questions:
Why does XY not find files with "!a OR b"?
In the absence of the Boolean prefix ">", why does XY behaves like under Boolean mode but remain under Standard mode?
In accordance with the beta log, both ":!a OR b" and "!a OR b" are parsed as "(NOT a) OR b". However, the actual results are absolutely different.
!a OR b
-
armsys
- Posts: 557
- Joined: 10 Mar 2012 12:40
- Location: Hong Kong
Re: !a OR b
Referring to "!a OR b", without a prefix (: or >), it's under the Standard mode by default.
It requires that the names must contain both "a" and "b" to be included. As a result, it yields a smaller hits list.
For example,However, it fails to include "3239043b389bb65bd0a1ed3fbd539f7e.jpg", even though it contains "b". Why?
On the other hand, ":!a OR b" doesn't require the names contain either "a" or "b" to be included. ":!a OR b" only excludes names containing no "b". As a result, it yields a larger hits list.
It requires that the names must contain both "a" and "b" to be included. As a result, it yields a smaller hits list.
For example,
Code: Select all
Membership_transter_form.pdf
ourdata_brecke1.png
application_cbu.jpgOn the other hand, ":!a OR b" doesn't require the names contain either "a" or "b" to be included. ":!a OR b" only excludes names containing no "b". As a result, it yields a larger hits list.
-
admin
- Site Admin
- Posts: 66631
- Joined: 22 May 2004 16:48
- Location: Win8.1, Win10, Win11, all @100%
- Contact:
Re: !a OR b
The Boolean smart detection only works in Quick Search.
In Find Files you have to select Boolean mode, or prefix Boolean marker ":".
In Find Files you have to select Boolean mode, or prefix Boolean marker ":".
FAQ | XY News RSS | XY X
-
LittleBiG
- Posts: 1848
- Joined: 08 Apr 2011 12:57
- Location: Win10x64
Re: !a OR b
Code: Select all
14.10.0102 - 2014-05-21 15:50
+ Quick Search: Before, Boolean terms had to be prefixed with ":" to be
interpreted as Boolean terms. From now on this is not necessary anymore
(but still tolerated) because Boolean terms now are auto-detected by
testing for the presence of Boolean operators.
....
Note that in the main Find Files interface no such smartness is applied.
Here you explicitly set the Mode in the Mode dropdown.-
armsys
- Posts: 557
- Joined: 10 Mar 2012 12:40
- Location: Hong Kong
Re: !a OR b
Thanks LittleBig and Don for augmenting the clarity of the rules of Boolean operators in the XY kingdom.
XYplorer Beta Club