Why isn't the correct product variant appearing in the search results?

Search Index Setup

The most likely reason is that “Variant values” in Settings > Search > Searchable fields are not activated.

After enabling it, you must reindex the search index. The process differs depending on whether you use Elasticsearch/OpenSearch or the standard Shopware database search.

Rebuild via Shopware database search

Go to Settings > Search > Live Search and click “Rebuild search index”.

Rebuild via Elasticsearch / OpenSearch

You can rebuild the index either via CLI or using the Frosh Tools plugin.

If Elasticsearch is missing from the top bar inside the Frosh Tools admin section, it is not activated yet and must first be enabled in your .env file.

CLI commands
bin/console es:index
bin/console es:status
bin/console es:create:alias
Using the Frosh Tools plugin
  1. Open Settings > Tools.
  2. Click Elasticsearch in the top bar.
  3. Click Reindex.
  4. Wait a few minutes, depending on the number of products.
  5. Use the small refresh button if needed.
  6. Finally, click Trigger Alias Switch.

Note: Depending on the index size, the process may take about 5–15 minutes.