Skip to content

search

Storefront search results for the current query. Available on the search page.

Example

{{ search.results_count }} results for “{{ search.terms }}”

Output:

8 results for “candle”

Properties

PropertyDescription
search.content_results_unfilteredBuyer-visible content_results_unfiltered value for this search.
search.count_basisCorpus used for the resolved count: reconciled_corpus or bounded_hybrid_corpus.
search.default_sort_byDefault sort key.
search.error_codeStable search failure code, or nil after a successful evaluation.
search.erroredBuyer-visible errored value for this search.
search.filtersConfigured filters with counts scoped to the current product search and viewer.
search.performedtrue when a query was run.
search.prefixBuyer-visible prefix value for this search.
search.product_suggestionsPublished, viewer-eligible product suggestions permitted by the merchant search settings.
search.query_suggestionsQuery suggestions permitted by the merchant search settings.
search.resultsResult items.
search.results_countNumber of results.
search.sort_byActive sort key.
search.sort_optionsAvailable sort options.
search.suggestionsEnabled query and product suggestions for an empty search or a query with no results.
search.termsThe search query.
search.typesBuyer-visible types value for this search.
search.unavailable_productsBuyer-visible unavailable_products value for this search.

Property list is generated from the storefront engine (SearchDrop), so it always matches what your theme can use. Use {{ search | json }} only as a curated debug snapshot; it can omit lazy or otherwise public properties.