Name: FacetValue

A FacetValue represents the dynamically calculated number of search-results which would be obtained by filtering for a specific attribute-value of a product-attribute. A FacetValue can be associated with an attribute-value.

XML Example:
<FacetValue>
  zero or N[<children>FacetValue</children>]
  <filter>AttributeFilter</filter>
  <matches>xsd:int</matches>
  <name>xsd:string</name>
  <selectedRange>DoubleRange</selectedRange>
  <selectedValue>xsd:string</selectedValue>
</FacetValue>
JSON Example:
 {
   "children": [FacetValue],
   "filter": AttributeFilter,
   "matches": Number,
   "name": String,
   "selectedRange": DoubleRange,
   "selectedValue": String,
 }


Elements
NameTypeRequiredNillableDefault ValueDescription
childrenzero or N[FacetValue]falsefalseA hierarchical structure of facet-values is currently only possible for categories.
filterAttributeFilterfalsefalseThe object that has to be used in the SearchParams to filter for this attribute-value.
matchesxsd:intfalsefalseThe number of search-results that would be obtained by filtering for this attribute-value in the context of current search-request.
namexsd:stringfalsefalseThe localised name of the attribute-value.
selectedRangeDoubleRangefalsefalseThe attribute-range selected by the user.
selectedValuexsd:stringfalsefalseThe attribute-value selected by the user.