![](/img/trans.png)
[英]How to execute a structured query containing symbols in AWS Cloudsearch
[英]How to condense not conditions in AWS CloudSearch structured query?
是否可以使用AWS CloudSearch(2013 API)简化以下结构化查询:
(and (not sc:1) (not sc:4) (not sc:9) (not sc:13) (not sc:14) 'one' 'two')
这样就not
合并条件了吗?
我不能使用range
因为我的值不是连续的,除非我误解了它的工作原理。 与该示例相比,我要检查的值要多得多,因此最终结果有点难看。
除了搜寻号码的单一值和范围外,这些文件似乎什么也没有提及。
根据德摩根定理 ,您可以重写
(and (not sc:1) (not sc:4) (not sc:9) (not sc:13) (not sc:14))
如
(not (or sc:1 sc:4 sc:9 sc:13 sc:14))
我认为这并不是您所希望的,因为它重复了sc:
术语,但是有点简单
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.