Reputation: 784
Which collation would be better to set in Sphinx config file if utf8_unicode_ci is used in searchable MySQL table? I'd like to be able to sort searched data taking in notice umlauts (accents), case insensitive.
P.S. I'm reading http://sphinxsearch.com/docs/2.0.6/collations.html at the moment, but not everything is clear to me.
Thank you.
Upvotes: 3
Views: 1285
Reputation: 692
Make sure you use in source configuration sql_query_pre = SET NAMES utf8 , in index configuration charset_type = utf-8 and you need to add to the default charset_table utf codes for umlauts, for example, check http://sphinxsearch.com/wiki/doku.php?id=charset_tables
Upvotes: 2