Skip to content

IntegerAttribute Criterion

The IntegerAttribute Search Criterion searches for products by the value of their integer attribute.

Arguments

  • identifier - string representing the attribute
  • value - string representing the attribute value

Example

PHP

1
2
3
4
5
6
7
$query = new ProductQuery(
    null,
    new \Ibexa\Contracts\ProductCatalog\Values\Product\Query\Criterion\IntegerAttribute(
        'size',
        38
    )
);

REST API

1
2
3
4
5
6
7
8
<AttributeQuery>
    <Query>
        <IntegerAttributeCriterion>
            <identifier>size</identifier>
            <value>38</value>
        </IntegerAttributeCriterion>
    </Query>
</AttributeQuery>
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
{
    "AttributeQuery": {
        "Query": {
            "IntegerAttributeCriterion": {
                "identifier": "size",
                "value": 38
            }
        }
    }
}