This documentation is for a version that has reached its End Of Life. Such versions are no longer supported and don't receive security updates. Consider updating to a newer version.
    
Product attribute aggregations¶
Product attribute aggregations aggregate search results by the value of the product's attributes.
Depending on attribute type, the following aggregations are available:
- ProductAttributeBooleanAggregation
- ProductAttributeColorAggregation
- ProductAttributeFloatAggregation
- ProductAttributeFloatRangeAggregation
- ProductAttributeIntegerAggregation
- ProductAttributeIntegerRangeAggregation
- ProductAttributeSelectionAggregation
Arguments¶
- name- name of the Aggregation
- attributeDefinitionIdentifier- identifier of the attribute
Range aggregations (ProductAttributeFloatRangeAggregation and ProductAttributeIntegerRangeAggregation) additionally take:
- ranges- array of Range objects that define the borders of the specific range sets
Example¶
| 1 2 3 4 |  | 
| 1 2 3 4 5 6 7 8 |  |