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.

Ancestor Criterion

The Ancestor Search Criterion searches for content that is an ancestor of the provided location, including this location.

Arguments

  • value - array of location pathStrings

Example

REST API

1
2
3
4
5
<Query>
    <Filter>
        <AncestorCriterion>/81/82/</AncestorCriterion>
    </Filter>
</Query>
1
2
3
4
5
"Query": {
    "Filter": {
        "AncestorCriterion": "/81/82/"
    }
}

Use case

You can use the Ancestor Search Criterion to create a list of breadcrumbs leading to a location, because it matches every ancestor of that location, including the location itself.