Tags:
- API
New searchable resources added to the predictive search API
Searchable resources for predictive search APIs now include pages and articles. Author, body, tag, variant SKU & barcode attributes have also been added to searchable fields for products.
Parameters are getting an update (the old parameters remain valid):
- the
squery parameter is renamed toq
- the
- the
buryoption of theparameter is renamed tolast
- the
typesis renamed totypeand accepts a comma-separated list instead of an array
- a
fieldsparameter was added
- a
By default, is set to last. This means that out of stock products will now be shown last in the results list. There are options to hide out of stock products completely, or show them together with available products.
Learn more about the predictive search API in the Shopify Help Center.
Was this section helpful?