简体   繁体   中英

MySQL Fulltext index search returns wrong results

I have a MyISAM table with a Fulltext index on the NAME column which is VARCHAR(200) . I'm searching the table using the Boolean mode and I'm getting very strange results. Example: Let's look for records with the word "TRULY" in the NAME column:

select * from table_MYISAM WHERE MATCH(NAME) AGAINST('+TRULY' IN BOOLEAN MODE);

This returns no results. Now let's look for both "TRULY" and "RICHARD":

select * from table_MYISAM WHERE MATCH(NAME) AGAINST('+TRULY +RICHARD' IN BOOLEAN MODE);

This query returns hundreds of thousands of records with "RICHARD" in NAME, but none contain "TRULY". What is going on?

如果查看清单中的myisam停用词 ,则truly存在。向下滚动。如果您不希望使用任何停用词或编辑现有停用词 ,则可以使用一个空文件。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM