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.

...

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"
					}
				]
			}
      }