I am trying to retrieve products, which have a certain keyword in their title.
It is possible to search by full title like this:
/admin/api/2019-10/products.json?title=Name of my product
But I want to use wildcard/regex expression? How can I retrieve products which have, let's say "red", in their title?
Example products:
query: /admin/api/2019-10/products.json?title=Red
Expected result: Red car and Red book
But it returns an empty array .
It's not working since 2019-07
API version.
Requests that pass a value for
title
will match only if the value is the same as the complete title. Partial matches aren't supported.
Source: 2019-07 release notes
Seems the only way is using GraphQL. See the suggested solutions below:
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.