diff options
Diffstat (limited to 'ext/fts5/fts5_aux.c')
-rw-r--r-- | ext/fts5/fts5_aux.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/fts5/fts5_aux.c b/ext/fts5/fts5_aux.c index fbd786640..8e4beffe6 100644 --- a/ext/fts5/fts5_aux.c +++ b/ext/fts5/fts5_aux.c @@ -520,7 +520,7 @@ static void fts5Bm25Function( /* If no error has occurred, return the calculated score. Otherwise, ** throw an SQL exception. */ if( rc==SQLITE_OK ){ - sqlite3_result_double(pCtx, score); + sqlite3_result_double(pCtx, -1.0 * score); }else{ sqlite3_result_error_code(pCtx, rc); } |