Search Result Conditions

Layers supports two conditions for excluding products from Search Results by default.

Combined listings

When utilizing with Shopify Combined Listings you can choose to show the Parent, Children, or Both Products.

Out of Stock Products and Variants

You can currently show or hide Out of Stock Products and Variants from search results.

Search Language

The Search Language can be set to ‘English’ or ‘Multilingual’. Please refer to the table below for the languages supported by our Multilingual models.

Supported Languages

Our multilingual search models support over 100 languages, including Spanish, German, French, and Hebrew. It is best to utilitize Multilingual search when your catalog contains content in multiple languages or your customers may be searching in a different language than your catalog is.

By default the Product and Variant Featured Image is used for Image Search. You can use any of the following options to exclude or include images from search:

  • Only Product Featured Image
  • Only Variant Featured Image
  • Both Product and Variant Featured Images
  • Dynamic First, Last, or Only a specific position(s).

In the screenshot below we have configured our Image Search to use only the fourth product image.

Some search configuration updates may require a Catalog Sync from Shopify. Once the sync is complete you can evaluate Search using the Evaluate page in the dashboard.

Advanced Configuration

Text Embeddings Template

Caution We recommend contacting support before modifying the Text Embeddings Template. An improper template can severely impact the quality of Image and Semantic Text Search results

In the “Search Behavior” tab of the “Settings” page you can modify the Liquid template that is fed to generative and embedding models to create the semantic representation of your products. Refer to the Product Schema for the product data available.

Default Template:

A product named '{{ product.title }}' with properties:

{% for attribute in searchable_attributes %}
  {%- if attribute.code == 'title' -%}
    {%- continue -%}
  {%- endif -%}

  {%- if attribute.value == blank or attribute.value == 'Default Title' -%}
    {%- continue -%}
  {%- endif -%}

  {{ attribute.code -}}: {% if attribute.value[0] %}{{ attribute.value | join: ', ' }}{% else %}{{ attribute.value }}{% endif %}<br />.
{% endfor %}