Search
The search object provides access to search results, filters, and pagination for the store’s search page.
Usage Example
{%- comment -%} Render search results with active filters {%- endcomment -%}
<p>{{ search.results_count }} results for "{{ search.terms }}"</p>
{% for product in search.results %}
<div>
<a href="{{ product | link }}">{{ product.title }}</a>
<span>{{ product.price | money_with_currency }}</span>
</div>
{% endfor %}
{{ search.paginate | default: '' }}Properties
all_results_count
Returns the total amount of results for this search.
filters
Returns the available filters for this search, null if none is set.
active_filters
Returns the active filters for this search, null if none is set.