Open cocoahero opened 7 years ago
Thanks for pointing this out. It is a know concern and we are looking into it. I'll keep this issue open to track progress.
+1!!! This feature is a must have for stores that have a large number of products! - YandasMusic
Any progress on this enhancement request? Updates?
Any progress on this issue? I need the ability to filter/query on both collection and product_type.
Agree this would be a valuable enhancement, any update on this feature?
If anyone's interested, I couldn't wait around any longer for shopify to implement this basic feature, so I wrote some code that "virtually" does the above.
The conditions for this code are as follows:
The code follows the following logic:
Essentially, we're just using the search functionality for products to it's maximum extent, and ignoring the collection query provided by shopify, as it's useless.
If you want the full breakdown and code, just send me a PM.
@cocoahero @dbart01 Just notified the Storefront API team. Will report back soon with any insight
@cocoahero @dbart01 @ritteraf @alexman03 Here is Shopify's API team response:
"I actually spent some time looking into this and chatting with Mina – it appears that our current back-end currently isn't able to support these types of queries. Due to this, unfortunately we won't have any way to support this in the near future.
Sorry to be the bearer of bad news – we're constantly striving to improve the capabilities of the platform, though in this case we are blocked (for now)."
@EricNetsch It's more of a convenience than anything Eric. As I mentioned in my earlier post, the search capabilities can handle the requests we're looking to make, it just required a tremendous amount of code to do so. Thanks for looking into it anyways.
Hi, This feature is much needed (and correct me if I'm wrong, it's not really related to this specific repo). We use collections for pre-configured localization and personalization (i.e.: certain users will only see certain collections). When a user searches for a specific item, we want it to be only within the selected collections. Retrieving the entire collection and filtering it out with iteration is too wasteful, and creates an issue with pagination. Any plans for enabling it in the near future?
Any movement on this?
Helloooo Shopify??
Is there any success on this? I am not even able to search the products in the store (irrespective of the collection).
Below is my query to search products based on the title:
static func queryForSearchProducts(limit: Int, after cursor: String? = nil, productLimit: Int = 25, productCursor: String? = nil) -> Storefront.QueryRootQuery { return Storefront.buildQuery { $0 .products(first: Int32(productLimit), after: productCursor, query:"title:dress") { $0 .fragmentForStandardProduct() } } }
It crashes with "Fatal error: field node wasn't queried" in GraphQL.swift file in MobileBuySDK pods.
My gut feeling is that Shopify doesn't want to release this feature because of a business requirement, not a tech one. We ended up with a quirky and ineffective code just to implement such a simple functionality.
@sagilevanon so are you able to implement the searching of products irrespective of the collection? Can you show me how to implement this.
@ritteraf or @sagilevanon Would you guys be so free as to share your code solution with us/me?
The solution is basically duplicating title and description to a separated DB and search over it. The DB will hold the Shopify product key and then you can use the products API to fetch those specific items.
On Mon, Jan 3, 2022, 18:51 baseddb @.***> wrote:
@ritteraf https://github.com/ritteraf or @sagilevanon https://github.com/sagilevanon Would you guys be so free as to share your code solution with us/me?
— Reply to this email directly, view it on GitHub https://github.com/Shopify/mobile-buy-sdk-ios/issues/668#issuecomment-1004220670, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJV7PHQTQJKXYROVVEVI3ATUUHHZHANCNFSM4DRACU2A . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
You are receiving this because you were mentioned.Message ID: @.***>
A great user feature is the ability to filter products within a collection, for example by tags or a query string.
While doing such a query is currently available on all products within a shop, there doesn't appear to be a way to do this scoped to a collection. The following GraphQL query fails: