- Documentation >
- Search >
- Product Search Criteria >
- FloatAttribute
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
| use Ibexa\Contracts\ProductCatalog\Values\Product\ProductQuery;
use Ibexa\Contracts\ProductCatalog\Values\Product\Query\Criterion;
$query = new ProductQuery(
null,
new \Ibexa\Contracts\ProductCatalog\Values\Product\Query\Criterion\FloatAttribute(
'length',
16.5
)
);
|
REST API