在BOOLEAN模式下的FULLTEXT搜索是否具有默认相关性排序?

时间:2015-04-11 22:31:33

标签: mysql full-text-search

我有点困惑。找到的每个字BOOLEAN MODE returns only binary values(0或1),但在documentation中显示:

mysql> SELECT * FROM articles WHERE MATCH (title,body)
    -> AGAINST ('+MySQL -YourSQL' IN BOOLEAN MODE);
+----+-----------------------+-------------------------------------+
| id | title                 | body                                |
+----+-----------------------+-------------------------------------+
|  1 | MySQL Tutorial        | DBMS stands for DataBase ...        |
|  2 | How To Use MySQL Well | After you went through a ...        |
|  3 | Optimizing MySQL      | In this tutorial we will show ...   |
|  4 | 1001 MySQL Tricks     | 1. Never run mysqld as root. 2. ... |
|  6 | MySQL Security        | When configured properly, MySQL ... |
+----+-----------------------+-------------------------------------+
  

它们不会按相关性降低的顺序自动对行进行排序。   您可以从前面的查询结果中看到这一点:带有的行   最高相关性是两次包含“MySQL”的相关性,但确实如此   最后列出,而不是第一个。

这听起来像默认情况下有一个递增的相关性,或者示例结果是否意外地看起来像它的排序?

0 个答案:

没有答案