How to limit results on search page based on the query term?

alex_dev2
Shopify Partner
2 0 0

I'm trying to filter out products based on the query term.

So when a visitor search for example: "shoes size M" in the search box, I'd like to filter out product that are only available in size M.

 

How can I do this in any theme? Is it possible to intercept the results or the request going to shopify to retrive products for search?

 

 

Thanks.

Replies 0 (0)