Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/mysql/60.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
mysql排序规则为utf8\U unicode\U ci时的sphinx排序规则_Mysql_Sphinx_Collation - Fatal编程技术网

mysql排序规则为utf8\U unicode\U ci时的sphinx排序规则

mysql排序规则为utf8\U unicode\U ci时的sphinx排序规则,mysql,sphinx,collation,Mysql,Sphinx,Collation,如果在可搜索的MySQL表中使用utf8\U unicode\U ci,那么在Sphinx配置文件中设置哪个排序规则更好?我希望能够对搜索到的数据进行排序,注意umlauts(重音),不区分大小写 顺便说一下,我现在正在阅读,但并不是每件事都清楚 谢谢。确保在源配置中使用sql\u query\u pre=SET NAMES utf8,在索引配置中使用charset\u type=utf-8,并且需要将umlauts的utf代码添加到默认的charset\u表中,例如,选中谢谢。是否必须使用sq

如果在可搜索的MySQL表中使用utf8\U unicode\U ci,那么在Sphinx配置文件中设置哪个排序规则更好?我希望能够对搜索到的数据进行排序,注意umlauts(重音),不区分大小写

顺便说一下,我现在正在阅读,但并不是每件事都清楚


谢谢。

确保在源配置中使用sql\u query\u pre=SET NAMES utf8,在索引配置中使用charset\u type=utf-8,并且需要将umlauts的utf代码添加到默认的charset\u表中,例如,选中谢谢。是否必须使用sql\u query\u pre=SET NAMES utf8?没有它,你会遇到什么问题吗?不应该设置“排序规则服务器”吗?或者只是utf-8字符集表格应该被完全覆盖?集合名utf8就足够了。如果没有它,您将有问题,如果您试图抓住utf数据。umlauts字符需要添加到charset_表中的现有字符中