Metaobject pages not showing in search

Short description of issue

When metaobjects are set to publish as web pages, they do not show up as results in either Shopify’s Search liquid object or Predictive Search API.

Reproduction steps

Create a new metaobject definition and set it to be published as web pages. Then create a new entry for that definition and try to use your store theme’s search functionality to find it.

Additional info

I do think it’s interesting that these metaobject pages are indexed in the autogenerated sitemap.xml Shopify creates so obviously it is a consideration but why not also in the site search indexing?

What type of topic is this

Feature request

To get around this, I believe the best approach to have these pages show up in search results (for my JS driven search box) is to create a JSON array of these metaobject pages and then feed that info my script to be searched as a secondary data source along side the one returned by the Shopify Search API. This doesn’t feel very efficient but with how Shopify has things set up currently, I think this is the only way. Can anyone confirm or offer a better solution?

Also, this solution doesn’t address the issue of these pages also not showing in the regular search liquid object returned on the Search page/template. I guess I could do a similar workaround where I look through all the metaobjects and add those results to the search object but again, this feels wrong hacky and inefficient.

Open to suggestions. Thanks

Hey @Jeff_Nelon

Thanks for raising this limitation and describing your current workaround to get these pages to appear in the native search. I’m digging into this to see what our reccomended approach would be.

I second this. It is an issue for a while now that has not been adressed yet, as well as being able to hide metaobject web pages from search engines with seo.hidden. I really wonder what’s the internal process like to push these features “half-baked” for multiple years with no solution sometimes :thinking: