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 4 Current »

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:

  • attribute or attributeMatch
  • value
  • operator
  • levelFilter (optional)

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"
					}
				]
			}
      }
  • No labels