Skip to content

ContentId Criterion

The ContentId Search Criterion searches for content by its ID.

Arguments

  • value - int(s) representing the Content ID(s)

Limitations

ContentId can be used on all search engines.

Example

PHP

1
$query->query = new Criterion\ContentId([62, 64]);

REST API

1
2
3
4
5
<Query>
    <Filter>
        <ContentIdCriterion>[69, 72]</ContentIdCriterion>
    </Filter>
</Query>
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
{
    "ViewInput": {
        "identifier": "ContentIdCriterionTest",
        "Query": {
            "Filter": {
                "ContentIdCriterion": [69, 72]
            }
        }
    }
}