For complex criteria, you can use these formats:
criterion [(and|or|andnot|any|rank|near|onear) criterion]...
criterion [(and|or|andnot|any|rank|near|onear)(criterion)]...
In these formats, criterion is any basic or complex criterion.
As with basic criteria, you can precede these formats with the not operator followed by the rest of the complex criterion in parentheses.
Here are some examples of complex criteria:
•This advanced query returns only email objects that are not from rsilver@example.com or pcornflower@example.com:
contenttype:string("message/rfc822") and
not(emailfrom:(rsilver@example.com or pcornflower@example.com))
•This advanced query returns objects that expire before February 1, 2015, and for which either the UID is less than or equal to 56 or the UID is greater than 56 and the GID is not less than 30:
expirationtime:range(1970-01-01T00:00:10, 2015-02-01T00:00:00) and
or(uid:range(min, 56, to="LE"),
andnot(uid:range(56, max), gid:range(min,30, to="LT")))
© 2015 Hitachi Data Systems Corporation. All rights reserved.