I was doing a POC for implementing google retail api for search in my project. I used the default produts json that they provide and i tried to search the products, but it seems like i cannot add price as a facet or provide in the search query.
Does anyone has any suggestions how to add the price of the product as a search facet?
You must set up the price attribute as a facet in your product feed in order to add price as a facet to your Google Retail API search. You can take the following actions:
Include a price attribute as a new field in your product feed.
Add the price attribute to the facetable_attributes field in your product type declaration to configure it as a facet.
Send Google Merchant Center the new product feed.
The price property will be a facet in your Google Retail API search after you have finished these steps. Then, by including it in the filter parameter, you can use it in your search query.