Skip to main content
query

Returns paginated search results for Product, Page, and Article resources based on a query string. Results are sorted by relevance by default.

The response includes the total result count and available product filters for building faceted search interfaces. Use the prefix argument to enable partial word matching on the last search term, allowing queries like "winter snow" to match "snowboard" or "snowshoe".

Anchor to Arguments

SearchResultItemConnection arguments

•SearchResultItemConnection!
•String

Returns the elements that come after the specified cursor.

•String

Returns the elements that come before the specified cursor.

•Int

Returns up to the first n elements from the list.

•Int

Returns up to the last n elements from the list.

•SearchPrefixQueryType

Specifies whether to perform a partial word match on the last search term.

•[ProductFilter!]

Returns a subset of products matching all product filters.

The input must not contain more than 250 values.

•String!
required

The search query.

•Boolean
Default:false

Reverse the order of the underlying list.

•SearchSortKeys
Default:RELEVANCE

Sort the underlying list by the given key.

•[SearchType!]

The types of resources to search for.

The input must not contain more than 250 values.

•SearchUnavailableProductsType

Specifies how unavailable products or variants are displayed in the search results.


Was this section helpful?

•[SearchResultItemEdge!]!
non-null

A list of edges.

•[SearchResultItem!]!
non-null

A list of the nodes contained in SearchResultItemEdge.

•PageInfo!
non-null

Information to aid in pagination.

•[Filter!]!
non-null

A list of available filters.

•Int!
non-null

The total number of results.


Was this section helpful?