How can I modify code to search product tags in Shells theme?

Hi

I, using shells theme, could anyone know how can I modify below code so that I can search product tags as well

main-search.liquid

{%- assign results_count = 0 -%}
{%- for item in search.results -%}
{%- if item.object_type == ‘product’ -%}
{%- assign results_count = results_count | plus: 1 -%}
{%- elsif settings.search_show_only_products != true -%}
{%- assign results_count = results_count | plus: 1 -%}
{%- endif -%}
{%- endfor -%}

{%- paginate search.results by 12 -%}

{%- if search.performed -%} {%- if results_count == 0 -%} {{ 'general.search.no_results_html' | t: terms: search.terms }} {%- else -%} {{ 'general.search.results_for_html' | t: terms: search.terms }} {%- endif -%} {%- else -%} {{ 'general.search.title' | t }} {%- endif -%}

{%- if settings.search_show_only_products == true -%} {%- endif -%} {{ 'general.search.placeholder' | t }}
{{ 'general.search.submit' | t }}
{%- if search.performed -%}
{%- for item in search.results -%} {%- if item.object_type == 'product' -%}
{%- assign product = item -%} {% include 'product-collection' with show_first_product_image: true %}
{%- elsif settings.search_show_only_products != true -%}

{{ item.object_type | capitalize }}:

{{ item.title | escape }}

{%- endif -%} {%- endfor -%}
{%- if paginate.pages > 1 -%} {% render 'pagination', paginate: paginate %} {%- endif -%} {%- endif -%} {% endpaginate %}

{% schema %}
{
“name”: “Search page”,
“settings”: [
]
}
{% endschema %}

Hi @amazezones ,

Shopify does not support searching with tags, you can refer to the following link: https://help.shopify.com/en/manual/online-store/storefront-search#typo-tolerance

So this is not possible with theme code. You can just install app for it, refer:

Hope it helps!