gpt4 book ai didi

mysql - 在mysql全文搜索中搜索名称 "Will"

转载 作者:行者123 更新时间:2023-11-29 11:35:30 25 4
gpt4 key购买 nike

我对“名称”索引运行全文搜索,但我忽略了名称“Will”,因为“will”一词位于忽略列表中。

我的数据库托管在共享主机中,无法配置它。正确搜索的可能解决方案是什么?

最佳答案

作为 fulltext search stop word says 上的 mysql 文档:

The stopword list is loaded and searched for full-text queries using the server character set and collation (the values of the character_set_server and collation_server system variables). False hits or misses might occur for stopword lookups if the stopword file or columns used for full-text indexing or searches have a character set or collation different from character_set_server or collation_server.

Case sensitivity of stopword lookups depends on the server collation. For example, lookups are case insensitive if the collation is latin1_swedish_ci, whereas lookups are case sensitive if the collation is latin1_general_cs or latin1_bin.

服务器排序规则可以在 session 级别动态设置(至少在 v5.7 中)。因此,尝试将其设置为二进制排序规则。

关于mysql - 在mysql全文搜索中搜索名称 "Will",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36662441/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com