Short description of issue
When executing a search query, if the query is a normal term (no wildcard) and is combined with a metaobject based filter, the results are incorrect
Reproduction steps
Execute a search query that returns a product without any filters → see product result
Execute a search query that returns a product with a metaobject based filter (one that matches the previously returned product) → See no product result
Execute a search query that returns a product with a metaobject based filter, with the searchterm set to * a wildcard → See product result
Additional info
This store has products with a metafield called models. This metafield is a list of metaobjects.
On the storefront we allow users to make a search with a searchterm, where we append the metaobject filter.
Independantly, the metaobject filter returns the correct result as well as the searchterm only.
If a ‘real’ searchterm is combined with this filter, it doesn’t return any results. E.G:
/search?type=product&q=15225488 → returns 1 product
/search?type=product&filter.p.m.custom.models=gid%3A%2F%2Fshopify%2FMetaobject%2F194492498247&q=15225488 → returns 0 products
/search?filter.p.m.custom.models=gid%3A%2F%2Fshopify%2FMetaobject%2F194492498247&type=product → returns products, including the product with id 15225488.
What type of topic is this
Troubleshooting
If its helpful I would be able to share shop details in DM.