Filter Query: Terms Filter
Items with all Layers assigned.
{
"kind": "TermsFilter",
"field": "layerSchemaIds",
"terms": [
"CorporateLayer",
"MediaLayer",
"GeneralLayer"
]
}
Exclude Images, Videos, Virtual Press Kits.
{
"kind": "NotFilter",
"filter": {
"kind": "TermsFilter",
"field": "contentSchemaId",
"terms": [
"PressKit",
"ImageMetadata",
"VideoMetadata"
]
}
}
Basic Filter
Filter for content that has the exact term in a field. It can be used for single tagbox directly. For multi tagbox, fieldset and relation use the Terms filter inside the Nested Filter.
Each term must be an exact match.
{
"kind": "TermsFilter",
"field": "layerId.fieldId",
"terms": [
"Germany",
"Austria",
"Switzerland"
]
}
Properties
kind | Required Which filter to use, as string e.g. "TermsFilter" |
field | Required The field's name to execute the filter on. It is composed by the field ids of the hierarchy joined with "." (i.e. personLayer.address.region). |
terms | Required array Array of terms which must be as value in the field, to be used as term. It must be an exact match. The terms "Europe" does not find "Western Europe", but only "Europe". |
All Items with Inappropriate Keywords (Content Moderation)
{
"kind": "NestedFilter",
"path": "autoTagging.matches",
"filter": {
"kind": "TermsFilter",
"field": "autoTagging.matches.name.en",
"terms": [
"Alcohol",
"Drugs",
"Tobacco"
]
}
}