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.default_sort_by | Default sort key. |
search.errored | Buyer-visible errored value for this search. |
search.performed | true when a query was run. |
search.prefix | Buyer-visible prefix value for this search. |
search.results | Result items. |
search.sort_by | Active sort key. |
search.sort_options | Available sort options. |
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.