API to Search Products by SKU

Highlighted
Shopify Partner
50 0 7

Thanks very much. Agreed completely...I've been using it for about a month now and other than some issues with 500s, it's been a dream. Still learning every day though.

 

Glad I'm not going crazy on the partial SKU thing ;)

 

Cheers,

Kris

0 Likes
New Member
1 0 0

The discussion here is very helpful, I would like to add something new I found:

 

according to : https://help.shopify.com/en/api/getting-started/search-syntax

 

prefix query will match the document, so you can query like this

query: "SKU*"

since it will  query the whole document(usually used by a document database, think it like a row, it means every field) , you can filter the result by the field of SKU again based on the result.

 

for the suffix part, I guess the search engine is implemented with elastic search, and since there are no efficient way to do suffix query by default, so it is not implemented yet.

https://discuss.elastic.co/t/is-there-a-query-filter-for-suffix/49680

 

help this helpful.

 

 

0 Likes
New Member
3 0 0

Can you provide any working example, i have tried using the same but its not working for me

0 Likes