Skip to main content
query

List of the predictive search results.

•Int

Limits the number of results based on limit_scope. The value can range from 1 to 10, and the default is 10.

•PredictiveSearchLimitScope

Decides the distribution of results.

•String!required

The search query.

•[SearchableField!]

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.

The input must not contain more than 250 values.

•[PredictiveSearchType!]

The types of resources to search for.

The input must not contain more than 250 values.

•SearchUnavailableProductsType

Specifies how unavailable products are displayed in the search results.


Was this section helpful?

Anchor to PredictiveSearchResultPredictiveSearchResult
•PredictiveSearchResult

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?