/ Check-in [3ee7b5a9]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment: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.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | fts5
Files: files | file ages | folders
SHA1:3ee7b5a9f987c269251620ae7cc0fc7876b58ee5
User & Date: dan 2015-03-07 11:50:31
Context
2015-03-07
15:46
Fix some compiler warnings caused by signed/unsigned pointer conversions. check-in: cccee7b5 user: dan tags: fts5
11:50
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. check-in: 3ee7b5a9 user: dan tags: fts5
2015-03-04
08:29
Fix a couple of build problems. check-in: a5d5468c user: dan tags: fts5
Changes
Unified Diffs Side-by-Side Diffs Patch

Changes to ext/fts5/fts5.h.

Changes to ext/fts5/fts5_aux.c.

Changes to ext/fts5/fts5_hash.c.

Changes to ext/fts5/test/fts5ae.test.