Skip to content

FloatAttribute Criterion

The FloatAttribute Search Criterion searches for products by the value of their float 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\FloatAttribute(
        'length',
        16.5
    )
);

REST API

1
2
3
4
5
6
7
8
<AttributeQuery>
    <Query>
        <FloatAttributeCriterion>
            <identifier>length</identifier>
            <value>16.5</value>
        </FloatAttributeCriterion>
    </Query>
</AttributeQuery>
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
{
    "AttributeQuery": {
        "Query": {
            "FloatAttributeCriterion": {
                "identifier": "length",
                "value": 16.5
            }
        }
    }
}