Page 1 of 1
!a OR b
Posted: 19 Sep 2015 08:40
by armsys
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.
Re: !a OR b
Posted: 19 Sep 2015 09:29
by armsys
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,
Code: Select all
Membership_transter_form.pdf
ourdata_brecke1.png
application_cbu.jpg
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.
Re: !a OR b
Posted: 19 Sep 2015 20:37
by admin
The Boolean smart detection only works in Quick Search.
In Find Files you have to select Boolean mode, or prefix Boolean marker ":".
Re: !a OR b
Posted: 19 Sep 2015 22:08
by LittleBiG
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.
Re: !a OR b
Posted: 19 Sep 2015 23:55
by armsys
Thanks LittleBig and Don for augmenting the clarity of the rules of Boolean operators in the XY kingdom.