Start a new topic

How can I query products by meta field?

I'm using the API to get a product listing from this URL:

https://www.searchanise.com/getresults?api_key=xxxxxxxxx&q=blue&sortBy=relevance&sortOrder=desc&restrictBy[product.size]=cxs


This doesn't seem to work. The meta field's namespace is product, the key is size, and the value is cxs. How can I restrict by this meta field?

Hello!


Please clarify address of your store so we can assist you.


Thank you.

Hello!

Metafield name is different from the one specified in the admin panel. You should use the following URL:


https://www.searchanise.com/getresults?api_key=xxxxxxx&q=blue&sortBy=relevance&sortOrder=desc&restrictBy[metafield_bafd1a58d5f1078fba6fd2c9ca59f655]=cxs


Please also note that it is an undocumented feature and we do not guarantee its stable operation.


Thank you.

 

Login or Signup to post a comment