[英]SQL - WHERE MATCH query
I have SQL query -我有 SQL 查询 -
SELECT id, text FROM some_table WHERE MATCH (text, keywords) AGAINST ('".$search."' IN BOOLEAN MODE)
I'm not quite understand the difference between "IN BOOLEAN MODE" and "IN NATURAL LANGUAGE MODE".我不太明白“IN BOOLEAN MODE”和“IN NATURAL LANGUAGE MODE”之间的区别。
I tried to read about it but still not get it.我试图阅读它,但仍然没有得到它。
Can you please explain it to me and maybe provide an example?您能否向我解释一下,也许可以提供一个例子?
Just read it in the mySQL docs: Fulltext boolean mode: https://dev.mysql.com/doc/refman/8.0/en/fulltext-boolean.html Just read it in the mySQL docs: Fulltext boolean mode: https://dev.mysql.com/doc/refman/8.0/en/fulltext-boolean.html
Fulltext natural language Mode: https://dev.mysql.com/doc/refman/8.0/en/fulltext-natural-language.html全文自然语言模式: https://dev.mysql.com/doc/refman/8.0/en/fulltext-natural-language.html
In summary, the boolean mode uses the + and - operators and is more 'strict'.综上所述,boolean 模式使用 + 和 - 运算符,更加“严格”。 Natural language mode returns the most 'relevant' rows according to your search.自然语言模式会根据您的搜索返回最“相关”的行。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.