Dedicated to the Hydrogen framework, headless commerce, and building custom storefronts using the Storefront API.
I am using a storefront Graphql Api to search the product from my store. But when I search for the "Bracelets' keyword it gives the desired response, but when I search for 'Bangles' keyword I get irrelevant data from the shopify, why is this happening.
I am using this graphql API to search the product
query{
products(first: 250, query: "title: bangles" ) {
edges {
node {
id
title
priceRange{
minVariantPrice{
currencyCode
amount
}
}
metafield(key:"rating_count", namespace:"reviews" ){
value
}
featuredImage{
url
}
}
}
}
}
Hello @kuldi
The issue you're experiencing with the GraphQL API response returning irrelevant data when searching for the "Bangles" keyword could be due to several reasons.
To troubleshoot the issue further, consider trying the following steps:
Remember that the specific behavior of the search functionality in the Shopify GraphQL API can be influenced by various factors, including your store setup, data quality, and configuration settings.
Thanks