Page History
A 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:
...
Code Block |
---|
{
"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:
Code Block |
---|
{ "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:
- EQUAL
- NOT_EQUAL
- LIKE
- NUM_LESS_THAN
- NUM_GREATER_THAN
- NUM_LESS_OR_EQUAL
- NUM_GREATER_OR_EQUAL