- Issue created by @charly71
- 🇮🇹Italy charly71
I tried this patch and it works:
diff --git a/modules/contrib/search_api_synonym/src/Plugin/search_api_synonym/export/Solr.php b/modules/contrib/search_api_synonym/src/Plugin/search_api_synonym/export/Solr.php index bf9ff4ed0..4b7a47279 100644 --- a/modules/contrib/search_api_synonym/src/Plugin/search_api_synonym/export/Solr.php +++ b/modules/contrib/search_api_synonym/src/Plugin/search_api_synonym/export/Solr.php @@ -57,10 +57,10 @@ private function generateLine($word, $synonyms, $type) { switch ($type) { case 'synonym': // We force using of equivalent mappings for type = synonym. - $line = "{$word}, {$synonyms}"; + $line = "{$synonyms}, {$word}"; break; case 'spelling_error': - $line = "{$word} => {$synonyms}"; + $line = "{$synonyms} => {$word}"; break; } return $line;