Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

A group is a collection of filters with conditions.

All the filters 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 an a single if-statement. For example

Example:


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

Code Block
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()

 {
         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".

Here is an example 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.

View file
name2017-0103-2507_1508-3240-3938.mp4
height250

The The Details panel view of the newly created group:

Image Removed

The Image AddedThe 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:

Image RemovedImage Added

Then the if-statement will be

Code Block
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()

}

...

 {
         AddAssetToResults();
}

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