Is it possible to simplify the following structured query with AWS CloudSearch (2013 API):
(and (not sc:1) (not sc:4) (not sc:9) (not sc:13) (not sc:14) 'one' 'two')
so that the not
conditions are merged somehow?
I can't use range
because my values are not sequential, unless I've misunderstood how that works. I've got a good few more values to check than in that example, so the end result is a bit ugly.
The docs don't seem to mention anything but single value and range regarding searching numbers .
By De Morgan's Theorem , you can rewrite
(and (not sc:1) (not sc:4) (not sc:9) (not sc:13) (not sc:14))
as
(not (or sc:1 sc:4 sc:9 sc:13 sc:14))
Which I think is not exactly what you were hoping for since it repeats the sc:
term but is a bit simpler
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.