mysql - AWS RDS MySQL FullText Index with 2 Character Words
问题描述
I want to Query my Database Table with an FullText Index and it should consider 2 character words too.
I have an AWS RDS MySQL Database (Engine version 8.0.17). I have an FullText Index on my Table which works fine. But only consider words with minimum 3 character.
i already searched in the web, and found that i have to adjust the "ft_min_word_len" variable. The strange thing, the original value of ft_min_word_len was 4. But the index already worked with 3 characters too.
Now i adjusted the ft_min_word_len to 2 via RDS Parameter Group Restarted the database. Deleted and Recreated the FullText Index, but no change.
But still: Only 3 character Words are considerred. if i haven an entry with: "114 Apple"
This select found the entry:
select * from TestTable where MATCH (title) AGAINST('114' IN BOOLEAN MODE)
if i have an entry with "11 Apple" The corresponding select
select * from TestTable where MATCH (title) AGAINST('11' IN BOOLEAN MODE) doesn't find an entry.
The Query:
show variables where variable_name = 'ft_min_word_len';
shows the correct new value 2
Does anyone have an idea?
Kind Regards
解决方案
推荐阅读
- python - url Tensorflow Serving Python Request 超出了最大重试次数
- java - 测试调用最终类的静态方法的方法
- awk - 从文件中提取染色体模式
- python - RecursionError:将 py 转换为 exe 时超出了最大递归深度
- javascript - 在数组上映射后创建动态对象键
- javascript - 选择两个单独的 HTML 选择选项时如何调用函数?
- javascript - 为什么我的 Angular 站点在发布到 IIS 时会返回一个目录?
- html - 删除有序列表中的一些数字
- python - 在 MoviePy 中旋转颜色剪辑?
- c++ - 当游戏逐渐变快时,如何使弹跳高度保持恒定?