This implementation adds IsFieldEmpty
Visitor support for eZPlatform /Ibexa 2.5.
Unfortunately, this is only implemented in 3.x . The doc says that is available for 2.5. But the Vistor it is not implemented.
Either you have to index the field your self and add custom implementation or you can just use the code in this gist.
You can request content with empty field (not set) or not. Example get content that contains image relation field.
Usage:
$criterions[] = new Criterion\IsFieldEmpty('image_relation', false); // non-empty field
$criterions[] = new Criterion\IsFieldEmpty('image_relation'); // empty (default true)