NIH | National Cancer Institute | NCI Wiki  

Error rendering macro 'rw-search'

null

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Current »

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

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

The following example contains multiple nested compound queries:

{
    "compoundQuery": {
        "compoundQueries": [{
                "operator": "AND",
                "queries": [{
                    "attribute": "sample_name",
                    "value": "%Sample1a%",
                    "operator": "LIKE"
                }, {
                    "attribute": "data_generator",
                    "value": "%Jane Doe",
                    "operator": "EQUAL"
                }]
            },
            {
                "operator": "OR",
                "queries": [{
                    "attribute": "initial_sample_volume_ul",
                    "value": "%1000%",
                    "operator": "NOT_EQUAL"
                }, {
                    "attribute": "source_file_size",
                    "value": "%90000000%",
                    "operator": "NUM_LESS_THAN"
                }]
            }, {
                "operator": "OR",
                "queries": [{
                    "attribute": "source_file_size",
                    "value": "%80000000000000&",
                    "operator": "NUM_LESS_OR_EQUAL"
                }, {
                    "attribute": "source_file_size",
                    "value": "%3715000%",
                    "operator": "NUM_GREATER_OR_EQUAL"
                }]
            }, {
                "operator": "OR",
                "queries": [{
                    "attribute": "source_file_size",
                    "value": "%3715000&",
                    "operator": "NUM_GREATER_THAN"
                }]
            }
        ],
        "page": 1
    }
}
  • No labels