Filtering a single line text (list) metafield from within a metaobject using search and discovery

Filtering a single line text (list) metafield from within a metaobject using search and discovery

AElsdon
Visitor
1 0 0

I'm encountering an issue with the Search & Discovery app when trying to use metafields inside a metaobject as filters. Specifically:

  • I’ve created a metaobject that contains a Single line text (List) metafield, and this metaobject is directly referenced by a product using a metaobject reference metafield.
  • While I'm able to filter products using Single line text metafields (non-list) from within the metaobject, attempting to filter using Single line text (List) metafields results in the error:

    Filters must include a valid text field.

  • According to the Shopify Help Center, Single line text (List) metafields are supported as filters, and metaobject references should also work. Since filtering works correctly for non-list metafields, I believe this might be a bug or a limitation with how list-type metafields are handled when nested inside a metaobject.

Here’s a brief summary of my setup:

  1. I have a product with a metafield that references a metaobject.
  2. The metaobject contains multiple metafields, including both Single line text and Single line text (List) types.
  3. I can filter by Single line text metafields in the metaobject without any issues.
  4. Attempting to filter by Single line text (List) metafields results in the above error.

Thank you in advance for your help!

Replies 0 (0)