What's your biggest current challenge? Have your say in Community Polls along the right column.
Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

Search product api response irrelevalant to search string

Search product api response irrelevalant to search string

kuldi
Tourist
5 0 1

I am trying to integrate a storefront search product api. But the response I get from searched keyword is irrelevant. Suppose if I enter a 'Bracelets' keyword as a search parameter then I get the correct response related to bracelets. But if I search 'Bangles' keyword then I get an Irrelevant response, even though I have a bangles products in my store. I am Using API query listed below.

query{
          products(first: 250, query: "title: $searchString" ) {
              edges {
                    node {
                        id
                        title
                       priceRange{
                            minVariantPrice{
                            currencyCode
                            amount
                      }
           }
          metafield(key:"rating_count", namespace:"reviews" ){
          value
      }
      featuredImage{
       url
     }
 
   }
}
}
}
Replies 0 (0)