search.results

For liquid I need total of search.results only for products, without (article and page)

I have request “/search?q=Jackets”

how can I count total only for found products
I can not add “type=product” to the request

Hi

Thank you for replying

This construction returns only first 10 items

Hi @DmytroTryfiak ,

Please add code:

{% paginate search.results by 1000 %}
  {%- assign results_product = search.results | where: 'object_type', 'product' -%}
  {{ results_product.size }}
{% endpaginate %}