Furniture e-commerce search / Case 36
Organizing Shopify product metafields for reliable Algolia-powered furniture search
A furniture storefront used Algolia for product discovery, so the quality of search depended on Shopify product data being structured consistently enough to index, filter, and maintain.
Plain-English summary
What this solved for the business or user
Customers get a cleaner search experience because important product attributes are organized consistently instead of being buried in descriptions or entered differently from one product to another.
01 / Real situation
What was happening
The Shopify catalog was connected to Algolia for product search. The search layer depended on product data coming from Shopify, including custom product information stored in metafields. Without a deliberate metafield structure, similar attributes could be entered inconsistently, become difficult to index, or require one-off search rules that were hard to maintain as the furniture catalog grew.
02 / Constraint
Why the obvious solution was not enough
Algolia can only search and filter the data it receives. The solution therefore could not be treated as a front-end search problem alone. The source catalog needed a stable field model in Shopify so products could be indexed predictably and future merchandising changes would not require rebuilding the search implementation each time.
03 / Implementation
How the solution works
- Audit which product attributes need to participate in search, filtering, merchandising, or display before creating new metafields.
- Group related product metadata under a consistent Shopify metafield namespace and use clear keys that describe the business attribute rather than the current visual treatment.
- Choose metafield types deliberately so comparable values are stored in comparable formats instead of mixing free text, numbers, references, and lists unpredictably.
- Keep the product record in Shopify as the source of truth and expose only the metafields Algolia actually needs for searchable or filterable product records.
- Normalize repeated values and naming conventions before indexing. Search quality degrades quickly when the same concept is represented by multiple spellings or inconsistent formats.
- Map the selected Shopify fields and metafields into the Algolia product record so search and filters use structured attributes rather than parsing long product descriptions.
- Test new and edited products to confirm metafield changes are reflected in the Algolia index and that missing optional values do not break the product record.
- Document the metafield organization so future catalog editors know which field controls which part of search and can add products without creating new data conventions.
const searchRecord = {
objectID: product.id,
title: product.title,
handle: product.handle,
productType: product.productType,
attributes: {
...product.metafields.search,
},
};
indexProductInAlgolia(searchRecord);04 / Release checks
What should be verified before shipping
- Compare several products in the same furniture category and confirm equivalent attributes use the same metafield keys and value formats.
- Edit a Shopify metafield value and verify the corresponding Algolia record updates after the normal synchronization path runs.
- Test products with optional metafields left empty so the index remains valid and the storefront search does not render broken filters.
- Search and filter using the structured attributes and confirm results match the Shopify catalog data rather than stale or manually duplicated values.
- Add a new product using the documented metafield structure and confirm it becomes searchable without adding one-off code for that product.
- Review which fields are actually indexed so unnecessary internal or presentation-only data is not added to the search record.
05 / Result
What changed
The search implementation had a cleaner contract between Shopify and Algolia: Shopify remained the source of product truth, metafields provided structured catalog attributes, and Algolia consumed a predictable record for customer-facing discovery.
Reusable lessonSearch quality starts with catalog architecture. Before tuning ranking or UI, make the source product data consistent enough that the search engine receives dependable attributes to work with.
