Skip to content

IsContainer Criterion

The IsContainer Search Criterion searches for content items based on whether they are containers (i.e., can contain other content items).

Arguments

  • value – boolean (optional, default: true). If true, searches for content that is a container. If false, searches for content that is not a container.

Limitations

The IsContainer Criterion can be used on all search engines.

Example

PHP

1
2
$query->query = new Criterion\IsContainer(); // Finds containers
$query->query = new Criterion\IsContainer(false); // Finds non-containers