Page 1 of 1

Quick Search with a Combined NOT operator

Posted: 26 Sep 2015 05:32
by WordBaron
I've tried this for over 40 minutes now and can't figure out the right syntax, if it's at all possible. Can I do a quick search that has both a tag and NOT a particular label associated with the file?

This is that I'm trying...

Code: Select all

d:?:NOT lbl:archive AND tags:"help for myself" /rf
I've tried literally over a hundred variations of that with and without parens, with and without the ! for the NOT, and with and without the added boolean : indicator, and I can't seem to return what I expect it to return which is all the files with the tag "help for myself" but which have not been labeled as archive files.

Thanks in advance for any assistance that can be provided in this regard.

Re: Quick Search with a Combined NOT operator

Posted: 26 Sep 2015 07:32
by armsys
In the Address bar, enter

Code: Select all

d:\?tags:"help for myself" & !lbl:archivef /t
Edited 2015.09.26 Sat 04:07:37 PM HKT
Correction

Code: Select all

d:\?tags:"help for myself" & !lbl:archive /t
Sorry for my typo error.
Thank Don for pointing it out. :appl: :cup:

Re: Quick Search with a Combined NOT operator

Posted: 26 Sep 2015 09:26
by admin
While armsys's answer is correct (apart from the "f" in archivef ... :P ), yours should work as well.

What does not work with this?

Code: Select all

d:?:NOT lbl:archive AND tags:"help for myself" /rf
PS: Well, probably you got the Master Invert still set... next version will come with some new query checker to make this easier... so now take armsys's solution. It works regardless of the Master Invert setting.