Products collection filtering: issue with 100+ values

I have a products collection where each product has a single value text metafield, let’s call it X with over 800 unique values across all products. Shopify’s storefront filtering only supports up to 100 filter values per metafield. Each vendor in this collection typically has up to 100 unique values for metafield X tied to their products. However, when I filter by vendor, the metafield X filter doesn’t update to show only the values associated with that vendor’s products - it still tries to display all 800+ filter values, exceeding the limit. Is there any way to dynamically filter metafield X values based on the selected vendor with Liquid?

1 Like

Hey @Patrick_Jakubik

I’m happy to dig in to this with you to see what we can find.

Let me know if something like this would work; my first thought is to use vendor collections. You could create separate collections for each vendor, and since each vendor typically has fewer than 100 unique metafield X values, this would keep you under the filter limit. Then you could simply link to these collections when a vendor is selected.

Hi @Patrick_Jakubik - are you still experiencing an issue here?

Hi Kyle,

I used a simplified example, but Vendor is just one of several filters we use, so this won’t fix it. Honestly, I don’t see a workaround. I’m hoping on platform improvements instead.

Hey @Patrick_Jakubik thanks for sharing more context. Just looking at our docs, there may be a few other options to consider: https://help.shopify.com/en/manual/online-store/search-and-discovery/filters#considerations

Grouping Similar Values

A filter can display a maximum of 100 filter values on your store. If your filter has more than 100 possible values, then some values won’t be displayed to customers. You can reduce the number of possible filter values by grouping similar values. A filter group can have a maximum of 200 unique filter values, and your store can have a maximum of 1,000 filter groups across all selected filter settings.

Search and Discovery App

In the Shopify Search & Discovery app, a filter displays a maximum of 1,000 filter values. Metafield filters might display fewer than 1,000 values because there is a limit to how many metafields in the store are checked for unique values. Filter values not displayed in the app can still be displayed on your store to customers, provided the filter is displaying fewer than 100 filter values.

If that’s still not going to work, let me know and I’ll be sure to pass on the feedback to our product teams for you.

Hey @Patrick_Jakubik

Have you been able to solve the issue?