I have tried mostly everything. Checked all docs and stack questions and shopify community like:
Shopify API how to do a search query with like
https://community.shopify.com/c/Shopify-APIs-SDKs/Shopify-api-search-products-by-title/td-p/341866
How to search products by title using Shopify product search API?
https://github.com/Shopify/shopify_app
and found out that
@search = "2018";
@products = ShopifyAPI::Product.find(:all, params: { limit: 10,title:@search })
but this is returning empty array although I have may records containing this in title. https://prnt.sc/sx37o6
I want to get records according to @search
I have tried Product.search too but it causes: undefined method `search' for ShopifyAPI::Product:Class