search: Add result ranking in MySQL
authorrunntb <ntb001@gmail.com>
Tue, 1 May 2018 20:44:27 +0000 (16:44 -0400)
committerrunntb <ntb001@gmail.com>
Tue, 1 May 2018 21:00:53 +0000 (17:00 -0400)
commitb033d3dc34fd29c698b33e91a83b5e25ffec41a4
treeae7d6ee1b9c0b8b35ad5409797fbbff931d8fed8
parent26cd749b01b211e9d98adfc86654f64259cc42cf
search: Add result ranking in MySQL

MySQL normally attempts to rank the results when performing a full-
text search. However, this behavior is disabled when using BOOLEAN
MODE. While BOOLEAN MODE is needed in the WHERE clause, the default
NATURAL LANGUAGE MODE can be used in an ORDER BY clause to reenable
ranking.

Bug: T192458
Change-Id: I09462c339432927efead58fb543a10aed2c53195
includes/search/SearchMySQL.php