I have solr v4.8.0 on ubuntu 12.04 LTS.
I have field in schema.xml with filter solr.SynonymFilterFactory.
<fieldType name="text_ru" class="solr.TextField" positionIncrementGap="100">
<analyzer>
<tokenizer class="solr.StandardTokenizerFactory"/>
<filter class="solr.LowerCaseFilterFactory"/>
<filter class="solr.StopFilterFactory" ignoreCase="true" words="lang/stopwords_ru.txt" format="snowball" />
<filter class="solr.SnowballPorterFilterFactory" language="Russian"/>
<filter class="solr.SynonymFilterFactory" synonyms="synonyms.txt" ignoreCase="true" expand="true" />
</analyzer>
</fieldType>
I have next mapping
spidermen, superman, batman, бетмен, бетмэн, спайдермен, спайдермэн, супермен, супермэн, spiderman
I checked encoding of "synonyms.txt" file and it is utf-8.
The queries with english synonyms work fine. I have problem only with russian synonyms, they are not working, solr ignores them. I cannot manage the problem myself.
Added by me after 30 minutes: Somehow the words: "бетмэн", "спайдермэн" are found in search results, but "бетмен", "спайдермен" are not.