A shopper types "jacket" into your store and gets several hundred results. Nobody scrolls through them: they tick their size, then "blue" and "black"... and land on an empty page, because your panel read it as "blue and black". They don't try again. They rephrase the query, or they leave.

Filters are the second half of search, and they get far less attention than the engine's relevance. They are set up once, often straight from the list of available attributes, and never revisited. Here we go through the rules that matter, from the calculation logic down to the shopper's thumb on a phone.

👉 The short answer
  • A facet is a filter computed on the results of the current search, with the number of products per value.
  • Show those counts and never offer a value that leads to zero results.
  • OR between values of the same facet, AND across facets.
  • Keep active filters visible, removable one by one, and preserved when sorting or going back.
  • On mobile, a sheet that opens from a "Filters" button, with touch targets of at least 44 pt (Apple) or 48 dp (Google).

Filter or facet: what changes for the shopper

The two words are often used interchangeably. The distinction still helps when you set up your panel.

A filter narrows a list by a criterion: "price under $50", "in stock". It can exist independently of the results on screen.

A facet is a filter whose values are computed from the current results. On the query "trail running shoes", the Brand facet only offers the brands present in those results, each with its number of matching products. It describes what is on screen, and it changes with the query.

Diagram of how a facet is computed: query, results, facets computed on those results, shopper selection and recomputed counts
Every selection triggers a new calculation: the results and the counts of every facet update. Figures are for illustration.
A facet answers "what is in these results?", whereas a fixed filter answers "what is in the store?". On a search results page, the first question is the one the shopper cares about.

Rule 1: facets that depend on the results

A panel that is identical on every search ends up offering irrelevant criteria. Facets should reflect the products returned by the query, and the criteria shown should make sense for the product family at hand.

So compute each facet's values on the query results, and hide a facet when it has only one value: it doesn't help tell anything apart.

📌 Real-world example

On "hiking backpack", offer capacity and weight. On "summer dress", length and fabric. Not the other way around. And if the 40 dresses returned all come from the same brand, the Brand facet has no business being on screen.

Rule 2: a count on every value, and never an empty page

The count next to each value tells the shopper what they will get before they click. Above all, it prevents the worst-case scenario: ticking an option and landing on an empty page.

Show the count, recompute it on every selection, and never offer a value that leads to zero results in the current context. A value at zero is hidden or grayed out, it doesn't stay clickable.

⚠️ Pitfall to avoid

Counts computed once for the whole store, then never updated. The shopper reads "Size 9 (58)", also ticks "Waterproof", and finds out the combination returns nothing. The count shown must always match what the click will produce, given the filters already active.

Rule 3: order facets and their values

The first two or three facets get most of the clicks. Category, size and price usually come before fabric or country of manufacture.

Put the facets your customers use most at the top (your browsing data will tell you which), collapse the others, and cap long lists at a few values with a "show more" link. Within a facet, the order depends on what the values are.

✅ Do
  • Brands sorted by number of products
  • Sizes in their natural order: XS, S, M, L, XL
  • Prices from lowest to highest
❌ Avoid
  • Sizes in alphabetical order: L, M, S, XL, XS
  • Thirty brands expanded at once
  • Fabric above size on a clothing search

Rule 4: group similar values together

A catalog fed by several suppliers piles up spelling variants. The shopper faces "Blue", "navy blue", "Navy" and "Marine" as if they were four different colors. The fix is value grouping, also called bucketing.

Colors map to a dozen base shades, shoe sizes to a single system. Normalize these values at the source, in the catalog, rather than in the display layer: they will stay clean everywhere the catalog is used.

Values received from suppliersValue shown in the facet
Blue, navy blue, Navy, Marine, midnight blueBlue
Heather gray, charcoal, Grey, light grayGray
EU 38, 38 EU, UK 5, 3838 (one sizing system)
📌 Real-world example

Imagine a home decor store that mostly sells items between $10 and $40, with a few pieces of furniture above that. Round brackets like "$0-50 / $50-100 / $100+" put 80% of the products in the first range: it's useless. Ranges that follow the actual distribution ("under $15", "$15-25", "$25-40", "over $40") split the catalog into useful chunks. A price slider complements these ranges well, it doesn't replace them.

Rule 5: OR within a facet, AND across facets

Ticking "red" then "blue" means "red or blue": the shopper is widening their choice. Then adding "size 8" means "and in size 8": they are narrowing it. Reversed logic produces results that look absurd, and an empty list as soon as a second color is ticked.

Diagram of filter logic: OR between two colors widens the list, AND with a size narrows it, AND between two colors returns zero products
Values within a facet add up, facets intersect with each other. Figures are for illustration.

In practice: multiple checkboxes combined with OR within a facet, AND between facets. For single-choice facets (one category at a time, for example), use links or radio buttons so the behavior is clear.

Rules 6 and 7: selections that stay visible and survive sorting and going back

After three or four selections, shoppers don't always remember why they only see six products. Active filters should stay visible above the results, and each one should be removable without starting over: one chip per active filter with a cross, and a "Reset" button to return to the full list.

Changing the sort order, loading the next page or coming back from a product page must not clear the filters. It is one of the most common frustrations: the shopper views an item, comes back, and finds the full list again.

The fix comes down to two things: apply sorting to the already-filtered results, and keep the filter state in the URL so it survives the back button and a shared link.

Example URL that keeps the query, filters and sort order/search?q=jacket&color=blue,black&size=m&sort=price-asc&page=2
💡 Tip

The test takes one minute: run a search, tick two filters, change the sort order, open a product page, then go back. If any one of those actions takes you back to the full list, your customers are putting up with it too.

Rule 8: a panel built for the thumb on mobile

A sidebar has no place on a phone screen. The panel becomes a sheet that opens from an always-visible "Filters" button and closes onto the updated results.

Mobile accounts for most of the traffic

Around 70% of e-commerce traffic comes from mobile, and desktop converts nearly twice as well. A filter panel designed for the mouse weighs directly on that gap.

Source: Contentsquare, Digital Experience Benchmark 2025.

Checkboxes and chips must stay easy to tap: Apple's and Google's guidelines set a minimum touch target of 44 pt and 48 dp. Also plan a button that shows the number of active filters, a bottom sheet, and a confirm button that states the outcome ("Show 37 products") to avoid reloading the list on every tick.

More on this in our article on mobile search.

Rule 9: filters that work with a keyboard and a screen reader

Filters built from plain clickable elements can't be used with a keyboard and say nothing to a screen reader. Color swatches without a name pose the same problem for color-blind shoppers.

The fixes are rarely heavy, as long as you think about them from the design stage:

  • real checkboxes and real buttons, not clickable div elements;
  • a text label on every value, colors included;
  • a visible keyboard focus;
  • an announcement of the new result count through an aria-live region after each selection.

Facets start in the product data

No interface makes up for an incomplete catalog. A Color facet is only reliable if every product has a color, in a consistent vocabulary. A product without the attribute disappears as soon as the shopper filters, even if it was a perfect match for their search.

If your catalog goes through Google Merchant Center, the color, size, material and product_type attributes are the ones that feed your facets. Our article Merchant Center and site search covers which ones count and how to audit them, and the one on product data covers value normalization. No account yet? Our Google Merchant Center guide walks through creating the feed step by step.

A simple check: take your most-used facet and add up the counts of its values on a broad query. If the total is well below the number of results, part of the catalog is missing the attribute.

📌 Real-world example

Imagine the search "dress" returns 412 products. The Color facet's counts add up to 298. That would mean 114 dresses have no color, more than one in four: they drop out of the list as soon as the shopper picks any shade at all.

Measuring filter usage

Google Analytics 4Custom event

Three indicators are enough to tell whether your filters are pulling their weight.

  • Usage rate: the share of searches followed by at least one filter. A very low rate on a large catalog often points to irrelevant or badly placed facets.
  • The facets actually clicked: they tell you which order to use, and which ones you can collapse or remove.
  • Dead ends: the filter combinations after which shoppers give up or start a new search. They reveal gaps in the catalog or badly grouped values.

This data can be collected with a dedicated event in Google Analytics 4, sent on every selection. Remember to register its parameters as custom dimensions so they show up in your reports.

Example event to send on every filter tickedEvent name : filter_apply search_term : jacket filter_name : color filter_value : blue results_count : 37

The extraction method is described in our guide to analyzing site search queries in GA4.

How Vectail handles facets

In the Vectail widget, the Category and Brand facets are computed by Google Vertex AI on the results of each query, with the number of products per value. Price is filtered by range.

Several values of the same facet combine with OR, facets with each other with AND. Active filters appear as chips above the results, and on mobile the panel opens as a sheet from a button showing how many filters are selected. You choose which filters to display from the dashboard.

Searches that still end on an empty page are a separate project, covered in our guide to zero-result pages.

Your checklist

If you only check one item, make it the second: it is the easiest to verify, and the one your customers notice first.

  • Facets computed on the results, single-value facets hidden
  • A count on every value, recomputed on each selection, no clickable zero-result value
  • Most-used facets at the top, sizes in natural order, long lists collapsed
  • Colors, shoe sizes and price ranges normalized in the catalog
  • OR within a facet, AND across facets
  • Active filters as chips, removable one by one, a "Reset" button
  • Filters kept on sorting, pagination and back navigation (state in the URL)
  • Mobile sheet with 44 pt / 48 dp targets and a "Show N products" button
  • Real checkboxes, text labels, visible focus, aria-live announcement
  • Sum of counts compared to the number of results on a broad query

Frequently asked questions

What is the difference between a filter and a facet?

A filter narrows a list by a fixed criterion, such as "in stock" or "price under $50". A facet is a filter whose values are computed from the results of the current search, with the number of products per value. It changes with the query.

Should filters combine with AND or with OR?

Both, depending on the level. Several values ticked within the same facet combine with OR (red or blue), which widens the choice. Different facets combine with AND (red or blue, and in size 8), which narrows it.

Should you use a price slider or price ranges?

Ranges first, the slider as a complement. Ranges that follow the catalog's actual distribution can be picked in one tap, mobile included. A slider helps fine-tune afterwards, it doesn't replace the ranges.

How many facets should a results page show?

There is no ideal number. The first two or three facets get most of the clicks: put the ones your customers use most at the top, collapse the others, and hide any facet that has only one value on the results shown.

Sources

  1. Touch targets: Apple Human Interface Guidelines (44 pt) and Google Material Design (48 dp).
  2. Contentsquare, Digital Experience Benchmark, 2025.

Facets computed on every search, no development needed

Vectail installs search powered by Google Vertex AI with category, brand and price filters, counts included. One line of code to add, no plugin.

Start for free - 14 days, no credit card