Skip to content

Set up filters

Filters are what shoppers click to narrow results: a category, a size, a price range. Each filter is one column of your data. You add it on Search → Setup, and it shows in the widget’s filter panel and in facets in the search API’s response.

What you are building is Catalog or API only. The docs widget shows no filters, so with Docs there is no Filters card.

  1. Open Search → Setup and pick the collection under Collection.

  2. In the Filters card, click Add filter and pick the column. It joins the end of the list.

    The Filters card: Category, Brand, Material and Availability as checkboxes, Color as swatches, Price and Rating as range sliders
    The Filters card lists filters in the order the widget shows them
  3. On its row, set the Name shoppers see and how it is Shown as.

  4. Drag the row by its handle, or use the arrows, to put it in place. The widget shows filters in this order.

  5. Click Save changes in the bar at the bottom of the page. A filter on a searched column rebuilds the index: see Save your changes.

SettingWhat it doesDefault
ColumnAdd filter offers every column except links and the columns that hold Unique ID, Title, URL, Image URL or Content.—
NameThe filter’s title in the widget. AI reads the same name: see custom roles. Up to 100 characters.The column’s name; the price filter reads Price
Shown asCheckboxes, Buttons or Swatches. A number column shows as a Range slider or Checkboxes.Checkboxes, or Range slider for a number
Labels, colours and pictures (the sliders icon)Renames values, picks each swatch’s colour and gives each value a picture: see Rename values. Not on a range slider. On a filter added to a searched column, it shows after the save.—
OrderThe drag handle or the arrowsA new filter goes last
Remove (the bin icon)Takes the filter off. The column stays as it is. On a searched column, saving rebuilds the index.—

Several values picked in one filter match any of them. Values picked in different filters must all match.

Two filters follow a role instead of a column you add:

  • Price. Giving a column the Price role adds the price slider. It is always a Range slider.
  • Category. Giving a column the Category role adds the category filter. It can’t show as Swatches.

Both start on in a new collection. In the list they are ordinary rows: rename, move or remove them for that collection. The roles are on Map your fields.

The sliders icon on a filter’s row lists every value of the filter. Use it when your source data is messy and you’d rather not clean it at the source.

  1. Click the sliders icon on the filter’s row.

  2. Under Label, type the name shoppers should see for a value: l becomes Large.

  3. On a Swatches filter, pick each value’s colour under Color. Magic fill picks one for every value whose name says a colour, in any language (Rosso, Blu Tiffany). Values it can’t place stay blank, and colours you set stay as they are.

  4. Under Picture, click a value’s square to upload a picture or paste a link to one. Category tiles show it.

  5. Click Apply, then Save changes.

A store connected by its address fills in its own pictures on every sync: WooCommerce category images and Shopify collection images. A sync only fills values without a picture, so one you set stays. Through the API, send the pictures as imageMap in the filter’s settings.

The list shows values once the collection has data. A new filter on a searched column lists them after the save that rebuilds the index.

A filter value disappears once the shopper’s other choices rule it out: pick Blue, and sizes nobody stocks in blue drop off the list. Values of the filter being used stay, so shoppers can pick several.

To keep the panel’s shape steady, turn on Keep all filter values under Search → Look → Overlay. Values that would find nothing then stay in place, greyed out. The setting applies to the whole widget, and each search costs a little more.

A filter on a list column, such as the one with the Category role, can’t grey its values. While one is in the panel, values that would find nothing disappear as usual.

The preview on the right of Search → Setup shows the filters with your unsaved changes. A filter that waits on a rebuild appears after you save. API above the preview shows facets in the search API’s answer, with your saved settings.

Next: group variants if your data has one row per size or colour, or decide what shoppers see first with custom results.