Specifies the list of resource fields to use for search. The default fields searched on are TITLE, PRODUCT_TYPE, VARIANT_TITLE, and VENDOR. For the best search experience, you should search on the default field set.
A predictive search result represents a list of products, collections, pages, articles, and query suggestions
that matches the predictive search query.
Was this section helpful?
Retrieve predictive search results
Hide code
DescriptionCopy
query suggestions($query: String!) {
predictiveSearch(query: $query) {
queries {
text
}
collections {
id
}
products {
id
}
pages {
id
}
articles {
id
}
}
}