DC 6.1 Filter

AĀ filterĀ can be compared to a singleĀ condition in an if-statement. Usually (almost always, see Group) the operatorĀ in the if-statement is "&&" (in JavaScript/C#)/"AND" (SQL).

ForĀ example, theĀ filters:

results in the if-statement (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()
}



AĀ filterĀ can be created by selecting theĀ InputĀ tab in theĀ Search Editor and then clicking the "Add" button (see Create a Keywords filter for a detailed explanation on how to create a filter):

In the window which pops up, there are three tabs: Metadata field, Table and column, and Predefined. (For an image please see "3 Comparison Type")

A Metadata field or Table and columnĀ filterĀ MUST have some properties defined before it can be added to aĀ search:

  • TheĀ data, which the filter does work with. This is either a combination of Table and columnĀ or a Metadata field.
  • The Comparison Type, which decides what logic theĀ filterĀ will apply to the data being worked with.
  • The Input Type, which determines how theĀ Media ManagerĀ andĀ Video Portal gather input for aĀ search (some Comparison Types does not have an Input Type associated with it; in these cases an input type is not required).
  • TheĀ ID.

If aĀ predefinedĀ filterĀ is needed, then the input from theĀ userĀ is usually only anĀ ID. Though someĀ predefined filtersĀ MAY have Predetermined values, which MUST be supplied before theĀ filter can be created.