PlutocracyMercury developer docs

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

FieldTypeDescription
vendorsVendorFacetRow[]
typesTypeFacetRow[]
tagsTagFacetRow[]
countnumber
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.