When you perform a query, the system requires it in the context of a compoundQuery element with a join operator, even if it contains only one simple query. A simple query consists of the following parts:
The following example simple query finds only the collections or data files registered by the jane_doe user:
{ "compoundQuery": { "operator":"AND", "queries": [ { "attribute":"registered_by", "value":"jane_doe", "operator":"EQUAL" } ] } } |
The following example simple query finds only the collections or data files, at level 1 or above, in which any attribute equals jane_doe:
{ "compoundQuery": { "operator":"AND", "queries": [ { "operator":"EQUAL", "value":"jane_doe", "levelFilter":{"level":1,"operator":"NUM_GREATER_OR_EQUAL"}, "attributeMatch":"ANY" } ] } } |
For the operator within each simple query, the valid values are as follows: