DC 5.9 Group

A group is a collection of filters with conditions.

EachĀ filterĀ in aĀ search can be compared to a condition in an if-statement, i.e. all the filters in aĀ search can be compared to a single if-statement.

Example:


If aĀ search only has these threeĀ filters, the comparable if-statement is (in pseudo code)

If(asset.asset_type is in the supplied list of asset types 
	AND asset.assetid is in the supplied list of asset IDs
	AND asset.itemid is in the supplied list of item IDs) {
         AddAssetToResults();
}


So, to reiterate, allĀ filters have an "AND" relationship to every otherĀ filter.

Creating aĀ Group is a way of having other Conditions in the "if-statement".

ExampleĀ of how to create a Group:

  1. Go to theĀ Search Editor
  2. Click "Add group"Ā 
  3. Add aĀ filterĀ 
  4. Choose aĀ ConditionĀ 
  5. Rinse and repeat until satisfied.

The Details panel view of the newly created group:

The Condition of each precedingĀ filterĀ in theĀ groupĀ is applied to the followingĀ filter.

If we add this group to the filters used in the above example:

Then the if-statement will be

If(asset.asset_type is in the supplied list of asset types AND 
	asset.assetid is in the supplied list of asset IDs
	AND asset.itemid is in the supplied list of item IDs
	AND (asset_detail.name equals the supplied name OR asset's keywords meta data has a keyword, which equals one of the supplied keywords)) {
         AddAssetToResults();
}

In conclusion: aĀ group can be compared toĀ parenthesesĀ in an if-statement.