-
Notifications
You must be signed in to change notification settings - Fork 581
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RetailApi Search Returning Empty fields #4613
Comments
After further investigation, it looks like In the code shown below, I use Question 1:Even with pagination returning results of ~50 items per page, we are going to hit quota limits with customers very quickly since our retailAPI limits are set at 1000/min. 1000/50 = only 20 people can search a site per minute?? This seems extremely inefficient for creating display pages for product search results.
Question 2:After also analyzing the search results from Retail/Evaluate/Search UI page in GCP, only one network call is made. It gives the following results:
Replicating the payload below (seen from the retail/Evaluate/Search UI GCP page) in a fetch locally to the retailAPI endpoint, still only the
|
Any update on this? TLDR from above: why doesn't Instead it seems retailAPI needs to be called for each product using |
Hey @brendan-Wursta - not sure if you got anywhere with this but might be able to help, have you set the fields to retrievable under Controls > Attribute Controls? https://console.cloud.google.com/ai/retail/catalogs/default_catalog/controls/site |
Hi All,
Currently we are using a local backend (soon porting to CloudRun), to call the retailApi and fetch results using the google-cloud/retail node implementation. It returns the ID of the search results, but empty fields for the description, etc etc.
Why aren't 'description', 'Title' and 'Brands' populated in the JSON response below, when they are filled out and imported correctly in Merchant Center / Retail UI?
Environment:
Node version: v18.17.1 "@google-cloud/retail": "^3.0.0"Here's An example object in the array from
client.search
:And code for implementation:
Below is examples of the data and from searching this branch in Retail UI in GCP:
The text was updated successfully, but these errors were encountered: