> ## Knowledge Base Index
> Fetch the complete knowledge base index at: https://support.kelp.click/sitemap.xml
> Use this file to discover available pages before exploring further.
> Pure-Markdown content can be obtained by appending a '.md' suffix to the content URLs listed in the sitemap (without the trailing slash).

# Facets, filters and sorting

Filters narrow results. Facets show shoppers how many products match each value, such as brand, size or colour.
## Facets
Request facets on a search or browse and Kelp returns counts per value in `facetCounts`. Common Shopify facets include `vendor`, `productType`, `productCategory`, `tags` and `collections`, plus option fields such as `options.Size` and `options.Color`.
## Filters
* Each filter has a `field`, an optional operator and `values`.
* Operators: `=` (default), `!=`, `>`, `>=`, `<`, `<=` and `range`, which takes `[min, max]`.
* Separate filters combine with AND. Multiple values in one `=` filter combine with OR, for example red or blue.
## Sorting
Sort on fields such as `minPrice`, `createdAt`, `publishedAt`, `bestSeller` or `trending`. Add a tie-breaker if you need one, for example trending first, then title.
## Configure fields first
Any field used to filter, facet or sort must be configured on the collection. Requests that use an unconfigured field return a `400` error. Shopify metafields must also be enabled for sync in your Kelp tenant settings before they can be used.
Full field list: [Catalog fields reference](https://docs.kelp.click/reference/catalog-fields)