This documentation is for a version that has reached its End Of Life. Such versions are no longer supported and don't receive security updates. Consider updating to a newer version.
Field Criterion¶
The Field
Search Criterion
searches for content based on the content of one of its Fields.
Arguments¶
target
- string representing the identifier of the Field to queryoperator
- operator constant (IN, EQ, GT, GTE, LT, LTE, LIKE, BETWEEN, CONTAINS)value
- the value to query for
The LIKE
operator works together with wildcards (*
). Without a wildcards its results are the same as for the EQ
operator.
The CONTAINS
operator works with collection Fields like the Country Field Type,
enabling you to retrieve results when the query value is one of the values of the collection.
Querying for a collection with the EQ
operator will return result only when the whole collection equals the query values.
Example¶
1 |
|
Limitations¶
The Field
Criterion is not available in Repository filtering.
Use case¶
You can use the Field
Criterion to search for articles that contain the word "featured":
1 2 3 4 5 6 |
|