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
| Property | Description |
|---|---|
search.content_results_unfiltered | Buyer-visible content_results_unfiltered value for this search. |
search.count_basis | Corpus used for the resolved count: reconciled_corpus or bounded_hybrid_corpus. |
search.default_sort_by | Default sort key. |
search.error_code | Stable search failure code, or nil after a successful evaluation. |
search.errored | Buyer-visible errored value for this search. |
search.filters | Configured filters with counts scoped to the current product search and viewer. |
search.performed | true when a query was run. |
search.prefix | Buyer-visible prefix value for this search. |
search.product_suggestions | Published, viewer-eligible product suggestions permitted by the merchant search settings. |
search.query_suggestions | Query suggestions permitted by the merchant search settings. |
search.results | Result items. |
search.results_count | Number of results. |
search.sort_by | Active sort key. |
search.sort_options | Available sort options. |
search.suggestions | Enabled query and product suggestions for an empty search or a query with no results. |
search.terms | The search query. |
search.types | Buyer-visible types value for this search. |
search.unavailable_products | Buyer-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.