]> git.ipfire.org Git - thirdparty/sqlite.git/commit
Fix the bm25() function so that it multiplies scores by -1 before returning them...
authordan <dan@noemail.net>
Sat, 7 Mar 2015 11:50:31 +0000 (11:50 +0000)
committerdan <dan@noemail.net>
Sat, 7 Mar 2015 11:50:31 +0000 (11:50 +0000)
commit6f876c339dfc8c39aebbcf43adef3ff215402a68
treec3da00700587f4e78ef8888e7a6513a5d0d3f9a8
parent47c467c80e8719d0284adb6d95b999b51b9b080c
Fix the bm25() function so that it multiplies scores by -1 before returning them. This means better matches have a lower numerical score, so "ORDER BY rank" (not "ORDER BY rank DESC") does what you want.

FossilOrigin-Name: 3ee7b5a9f987c269251620ae7cc0fc7876b58ee5
ext/fts5/fts5.h
ext/fts5/fts5_aux.c
ext/fts5/fts5_hash.c
ext/fts5/test/fts5ae.test
manifest
manifest.uuid