You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug]: fulltext index search 'string*' in boolean mode is not correct. #20958
CREATE TABLE `fulltext_test` (
`col1` bigint DEFAULT NULL,
`col2` int NOT NULL,
`col3` varchar(200) DEFAULT NULL,
`col4` varchar(200) DEFAULT NULL,
PRIMARY KEY (`col2`),
FULLTEXT(`col3`,`col4`) WITH PARSER ngram
);
load data local infile '/Users/ariznawl/Downloads/zhwiki-20241201-pages-articles-multistream-index.txt' into table test.fulltext_test fields terminated by ':' ESCAPED BY '\t' lines terminated by '\n';
select * from fulltext_test where match(col3,col4) against ('每日图片/2009年8月*' in boolean mode);
the txt file is huge, please contact me privately.
mysql> select * from fulltext_test where match(col3,col4) against ('每日图片/2009年8月*' in boolean mode);
Empty set (0.03 sec)
mysql> select * from fulltext_test where col4 like '每日图片2009年8月%'; -->上面的搜索实际等价于这个搜索
Empty set (0.61 sec)
Activity
cpegeric commentedon Jan 2, 2025
probably, the sentence tokenize into something like 每曰图片/2009年8月 -> "每曰图 曰图片 图片 2 0 0 9 年 8 月"
This test is not valid.
Ariznawlll commentedon Jan 7, 2025
testing
Ariznawlll commentedon Jan 10, 2025
当前mo中文搜索的处理逻辑是先去除所有的符号,然后进行搜索,因此bug中的搜索如下:
所以mo的结果符合预期