Why isn't the correct product variant appearing in the search results?
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.
Go to Settings > Search > Live Search and click “Rebuild search index”.
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.
bin/console es:index bin/console es:status bin/console es:create:alias
- Open Settings > Tools.
- Click Elasticsearch in the top bar.
- Click Reindex.
- Wait a few minutes, depending on the number of products.
- Use the small refresh button if needed.
- Finally, click Trigger Alias Switch.
Note: Depending on the index size, the process may take about 5–15 minutes.