Skip to main content
FilterIQRequest access
Menu
Type to search across all documentation
NavigateEnterOpenEscClose
4 min read

Metafield Filters

Create filters from Shopify metafields to enable filtering on custom product attributes.

Metafield Filters

Shopify metafields allow you to store custom data on products (materials, care instructions, certifications, etc.). FilterIQ can turn any metafield into a filterable attribute.

How Metafield Filters Work

When you create a filter from a metafield, the app:

  1. Reads the metafield values from your products during indexing
  2. Indexes those values as filterable attributes in the search engine
  3. Generates filter options based on the unique values found
  4. Displays the filter on your storefront using the appropriate filter type

Supported Metafield Types

Shopify Metafield TypeFilter DisplayExample
Single-line textCheckbox listMaterial: Cotton, Polyester, Silk
List of text valuesCheckbox listCertifications: Organic, Fair Trade
Number (integer)Range sliderThread count: 200-1000
Number (decimal)Range sliderWeight: 0.5-5.0 kg
True/FalseBoolean toggleVegan: Yes/No
RatingStar ratingReview rating: 1-5
ColorColor swatchPrimary color

Creating a Metafield Filter

Step 1: Ensure Metafield Definitions Exist

Your metafields must have Shopify metafield definitions. Go to Shopify Admin > Settings > Custom data > Products to see your existing definitions.

Step 2: Add the Filter

  1. Go to Filters in the app dashboard
  2. Click Add Filter
  3. In the data source dropdown, select Metafield
  4. Choose the metafield namespace and key (e.g., custom.material)
  5. Select the display type (checkbox, range slider, etc.)
  6. Configure the filter label and options
  7. Click Save

Step 3: Re-index Products

After adding a metafield filter, you may need to trigger a re-sync to index the new metafield values. Go to Settings > Sync Status and click Re-sync Products.

Step 4: Publish

Click Publish to Storefront to make the new filter available to shoppers.

Metafield Doctor

The Metafield Doctor is a built-in tool that analyzes your product catalog and suggests which metafields would make good filters.

What It Does

  • Scans your products for existing metafield data
  • Identifies metafields with enough unique values to be useful as filters
  • Suggests the optimal filter type for each metafield
  • Calculates a data health score showing how completely your products have the metafield populated

How to Use It

  1. Go to Filters > Metafield Doctor (requires a paid plan)
  2. Click Scan Products
  3. Review the suggestions
  4. Click Create Filter next to any suggestion you want to use

Data Health Score

The Metafield Doctor calculates how well your product data supports filtering:

ScoreMeaning
90-100%Excellent -- nearly all products have this metafield populated
70-89%Good -- most products have this metafield, some gaps
50-69%Fair -- significant gaps; some products will not appear when this filter is used
Below 50%Poor -- consider populating more products before using as a filter

Safety Guarantee

The Metafield Doctor only writes to the searchfilters.* namespace. It never modifies core Shopify product fields (title, description, vendor, product_type, handle, tags, or images). All changes are reversible via the rollback endpoint.

Best Practices

  1. Check data coverage before creating metafield filters -- A filter is only useful if most products have the metafield populated
  2. Use consistent values -- Metafield values like "Red", "red", and "RED" will create separate filter options unless you configure merge groups
  3. Start with high-coverage metafields -- Create filters for metafields that 80%+ of your products have populated
  4. Test on your storefront -- After publishing, verify the filter options match what you expect
Was this page helpful?