Skip to content

ObjectStateId Criterion

The ObjectStateId Search Criterion searches for content based on its object state ID.

Arguments

  • value - int(s) representing the object state ID(s)

Limitations

ObjectStateId can be used on all search engines.

Example

PHP

1
$query->query = new Criterion\ObjectStateId([4, 5]);

REST API

1
2
3
4
5
<Query>
    <Filter>
        <ObjectStateIdCriterion>1</ObjectStateIdCriterion>
    </Filter>
</Query>
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
{
    "ViewInput": {
        "identifier": "ObjectStateIdCriterionTest",
        "Query": {
            "Filter": {
                "ObjectStateIdCriterion": "1"
            }
        }
    }
}