Why isn't the correct product variant appearing in the search results?
The most likely reason is that the 'Variant values' in the 'Searchable fields' section of 'Settings > Search' are not activated. After doing so, you must reindex the search index. Depending on whether you use Elasticsearch/OpenSearch or the normal Shopware database search, the process will differ slightly. The normal Shopware database index can be recreated under "Settings > Search > Live Search" by selecting "Rebuild search index". The Elasticsearch/OpenSearch index can be recreated using three CLI commands, or via the Frosh 'Tools' plugin in the admin. The following three commands are needed to recreate the index via the CLI: 1. bin/console es:index bin/console es:status bin/console es:create:alias. Wait until the second command shows 'Indexing: Completed" before executing the third command. You can recreate the search index using the Frosh 'Tools' plugin by going to 'Settings > Tools' and 'Elasticsearch' in the top bar, then clicking on 'Reindex'. INFO: If 'Elasticsearch' is missing from the top bar, then it is not activated, so you must first activate it in your '.env' file. Wait a few minutes (5–15, depending on the number of products) while clicking the small refresh button. Finally, click on 'Trigger Alias Switch' to finish.