NIH | National Cancer Institute | NCI Wiki  

Error rendering macro 'rw-search'

null

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Added an example.

The following example compound query finds only the items registered by the jane_doe user or the john_doe user:

Code Block
              {
                 "compoundQuery":    {
                    "operator": "OR",
                    "compoundQueries":       [
                                {
                          "operator": "OR",
                          "queries":             [
                                            {
                                "attribute": "registered_by",
                                "value": "jane_doe",
                                "operator": "EQUAL"
                             },
                                            {
                                "attribute": "registered_by",
                                "value": "john_doe",
                                "operator": "EQUAL"
                             }
                          ]
                       }
                    ]
                 },
              }