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.
IsFieldEmpty Criterion¶
The IsFieldEmpty Search Criterion searches for content based on whether a specified field is empty or not.
Arguments¶
fieldDefinitionIdentifier- string representing the identifier of the field- (optional)
value- bool representing whether to search for empty (defaulttrue), or non-empty fields (false)
Limitations¶
The IsFieldEmpty Criterion isn't available in Repository filtering.
The Richtext field type (ezrichtext) isn't searchable in the Legacy search engine.
Example¶
PHP¶
1 | |
Use case¶
You can use the IsFieldEmpty Criterion to search for articles that don't have an image:
1 2 3 4 5 6 | |