Metaobjects not appearing in search results for Search and Discovery

Metaobjects not appearing in search results for Search and Discovery

treezcode
Tourist
4 0 1

I have used metaobjects to dynamically create pages, but the pages do not display in the search results of the Search and Discovery app. Is there a solution for this? I have multiple pages created with metaobjects as it seemed to be a cleaner solution than creating a mass amount of separate pages. Better content management at the cost of having the pages not appear in the search results is a difficult pill to swallow. Any suggestions?

Replies 2 (2)

lynth
Shopify Partner
77 3 5

You can use template files to create pages, but I don't think you can use metaobjects with the Search and Discovery app. It looks like you can only use simple metafields there. If I'm wrong, please let me know guys. You can use metafields with the Search and Discovery app as filters, for example, colors, prices, sizes, etc.

If my tips are useful, just mark it as the solution. Cheers!
Feeling grateful? Buy me a coffee!
treezcode
Tourist
4 0 1

I'm confused as to how I should resolve this issue. Yes, I could just create a page for each item and use a template to dynamically render a different metaobject onto each page, but this seems extremely tedious and not friendly for UX. Currently I have the metaobject pages creating breadcrumbs based on there handle. The URL structure for each item is: "https://floridafungi.farm/pages/our-fungi/chestnut-mushroom", if I don't use the metaobject pages I lose the hierarchy of the handle. The user navigates from "Our Fungi" >> "[specific fungi]", so it seems natural for the URL to reflect this. Also the breadcrumbs I have created will break without this handle. Am I overseeing something simple? I tend to over engineer solutions and I feel this may perhaps be one of those moment. 

I appreciate you taking time to help me understand.