Skip to content
For AI agents: the complete documentation index is available at llms.txt; this page is also available as Markdown at index.md.

Subtree Criterion

The Subtree Search Criterion searches for content based on its location ID subtree path. It returns the content item and all the content items below it in the subtree.

Arguments

  • value - string(s) representing the pathstring(s) to search for

Example

PHP

1
2
3
4
5
use Ibexa\Contracts\Core\Repository\Values\Content\Query;
use Ibexa\Contracts\Core\Repository\Values\Content\Query\Criterion;

$query = new Query();
$query->query = new Criterion\Subtree('/1/2/71/72/');

REST API

1
2
3
4
5
<Query>
    <Filter>
        <SubtreeCriterion>/1/2/71/</SubtreeCriterion>
    </Filter>
</Query>
1
2
3
4
5
"Query": {
    "Filter": {
        "SubtreeCriterion": "/1/2/71/"
    }
}