diff options
author | unknown <serg@serg.mysql.com> | 2001-11-08 00:06:07 +0100 |
---|---|---|
committer | unknown <serg@serg.mysql.com> | 2001-11-08 00:06:07 +0100 |
commit | 7e6161287ef4f8d112af04d60723fa410e2b9fa6 (patch) | |
tree | 57e47c348efe428aa84238f656e05060bae45a6b /myisam/ft_boolean_search.c | |
parent | 74e044c0db38bb09e168ad1ece001051fd4ef567 (diff) | |
download | mariadb-git-7e6161287ef4f8d112af04d60723fa410e2b9fa6.tar.gz |
bug in relevance calculation fixed
Diffstat (limited to 'myisam/ft_boolean_search.c')
-rw-r--r-- | myisam/ft_boolean_search.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/myisam/ft_boolean_search.c b/myisam/ft_boolean_search.c index bda76cb09a8..49b861fe22d 100644 --- a/myisam/ft_boolean_search.c +++ b/myisam/ft_boolean_search.c @@ -260,15 +260,14 @@ void _ftb_climb_the_tree(FTB_WORD *ftbw, my_off_t curdoc) else /* if (yn==0) */ { + ftbe->cur_weight+=weight; if (ftbe->yesses >= ftbe->ythresh && !ftbe->nos) { yn=ftbe->yesno; - ftbe->cur_weight=weight; weight*=ftbe->weight; } else { - ftbe->cur_weight+=weight; break; } } |