new module:models/ProductSearchRefinementValue()
Constructs a new ProductSearchRefinementValue
.
Document representing a product search refinement value.
Members
(inner) description :String
The localized description of the refinement value.
Type:
- String
(inner) hit_count :Number
The number of search hits when selecting the refinement value. Can be 0.
Type:
- Number
(inner) label :String
The localized label of the refinement value.
Type:
- String
(inner) presentation_id :String
The optional presentation id associated with the refinement value. The presentation id can be used, for example, to associate an id with an HTML widget.
Type:
- String
(inner) value :String
The refinement value. In the case of an attribute refinement, this is the bucket, the attribute value, or a value range. In the case of a category refinement, this is the category id. In the case of a price refinement,k this is the price range. Ranges are enclosed by parentheses and separated by ".."; for example, "(100..999)" and "(Aa..Fa)" are valid ranges.
Type:
- String
(inner) values :Array.<module:models/ProductSearchRefinementValue>
The array of hierarchical refinement values. This array can be empty.
Type:
Methods
(static) constructFromObject(data, obj) → {module:models/ProductSearchRefinementValue}
Constructs a ProductSearchRefinementValue
from a plain JavaScript object, optionally creating a new instance.
Copies all relevant properties from data
to obj
if supplied or a new instance if not.
Parameters:
Name | Type | Description |
---|---|---|
data |
Object | The plain JavaScript object bearing properties of interest. |
obj |
module:models/ProductSearchRefinementValue | Optional instance to populate. |
Returns:
The populated ProductSearchRefinementValue
instance.