a and not(b or c) 与 Apple Spotlight 查询
a and not(b or c) with Apple Spotlight query
Apple 的 dev dox 提供文件元数据查询表达式语法的信息。
我遇到的问题是我想做 'A and not(B or C)' 但我不知道该怎么做。看来我只能做 'A and ((not B) or (not C))' 而这不是我想要的。这里有一个很好的事实 table 生成器证明了这个问题:http://turner.faculty.swau.edu/mathematics/materialslibrary/truth/
根据 dox,考虑到 Spotlight 支持的内容,我认为这是不可能的。
已解决
关于我要解决的问题的一些细节:
我想查看从公司域外发送给我的电子邮件,而不是 webex 生成的(它用于会议更新等) MS Outlook 2011 (Mac) 使用 OS X Spotlight 搜索引擎来过滤电子邮件'Raw Query'.
工作查询(感谢 Renzo)是:
com_microsoft_outlook_recpient_email_addresses == "jsmith@example.com" && com_microsoft_outlook_author_email_addresses != "*@example.com" && com_microsoft_outlook_author_email_addresses != "*@webex.com"
根据“De Morgan's laws”表达式A and not(B or C)
等于A and not(B) and not(C)
,所以你可以使用&&
运算符和!=
运算符表达你的条件。
Apple 的 dev dox 提供文件元数据查询表达式语法的信息。
我遇到的问题是我想做 'A and not(B or C)' 但我不知道该怎么做。看来我只能做 'A and ((not B) or (not C))' 而这不是我想要的。这里有一个很好的事实 table 生成器证明了这个问题:http://turner.faculty.swau.edu/mathematics/materialslibrary/truth/
根据 dox,考虑到 Spotlight 支持的内容,我认为这是不可能的。
已解决
关于我要解决的问题的一些细节: 我想查看从公司域外发送给我的电子邮件,而不是 webex 生成的(它用于会议更新等) MS Outlook 2011 (Mac) 使用 OS X Spotlight 搜索引擎来过滤电子邮件'Raw Query'.
工作查询(感谢 Renzo)是:
com_microsoft_outlook_recpient_email_addresses == "jsmith@example.com" && com_microsoft_outlook_author_email_addresses != "*@example.com" && com_microsoft_outlook_author_email_addresses != "*@webex.com"
根据“De Morgan's laws”表达式A and not(B or C)
等于A and not(B) and not(C)
,所以你可以使用&&
运算符和!=
运算符表达你的条件。