Product attribute aggregations¶
Product attribute aggregations aggregate search results by the value of the product's attributes.
You use them over the REST API, in the Aggregations element of the payload of the
POST /product/catalog/products/view request.
Depending on the attribute type, the following aggregations are available:
| Name | Type | Based on attribute type |
|---|---|---|
AttributeBooleanTerm |
Term | Checkbox |
AttributeColorTerm |
Term | Color |
AttributeFloatRange |
Range | Float |
AttributeFloatStats |
Stats | Float |
AttributeIntegerRange |
Range | Integer |
AttributeIntegerStats |
Stats | Integer |
AttributeSelectionTerm |
Term | Selection |
Arguments¶
name- name of the AggregationattributeDefinitionIdentifier- identifier of the attribute
Range aggregations (AttributeFloatRange and AttributeIntegerRange) additionally take:
ranges- array of ranges that define the borders of the specific range sets
Example¶
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 | |