SearchFacets
Facets attached to redis-backed search / collection / zone results
(RedisSearchService.searchProducts / searchCollection).
count is the TOTAL number of matching documents (pre-pagination).
Type: object
| Field | Type | Description |
|---|---|---|
vendors | VendorFacetRow[] | |
types | TypeFacetRow[] | |
tags | TagFacetRow[] | |
count | number |
Example (illustrative)
{
"vendors": [
{
"vendor": "Mercury Apparel",
"count": 12
}
],
"types": [
{
"type": "Shirts",
"count": 12
}
],
"tags": [
{
"value": "string",
"count": 12
}
],
"count": 12
}Used by
Declared in api-types/src/storefront/models.ts.