ProductSearchCalculatedFacetValue reference
This article provides reference material about ProductSearchCalculatedFacetValue
struct.
Properties
Value
The value.
Text
The text which describes the value.
Selected
The values indicating whether facet value is selected.
Is not relevant for facets with ProductSearchFacetDisplayType.RangeInput
display type.
Count
The count of found products for the value.
Can be set to 1
for facets with ProductSearchFacetDisplayType.RangeInput
display type.
Can be set to 1
for selected values.
SortOrder
The sort order of the value.
TopValuesSortOrder
The sort order of the value among the top values.
Example:
var colorValue = new ProductSearchCalculatedFacetValue(
Value: "RED",
Text: "Red",
Selected: true,
Count: 1,
SortOrder: 10,
TopValuesSortOrder: 1);
var numberValue = new ProductSearchCalculatedFacetValue(
Value: 5,
Text: null,
Selected: false,
Count: 1,
SortOrder: 9,
TopValuesSortOrder: 2);