summaryrefslogtreecommitdiff
path: root/myisam/ft_boolean_search.c
diff options
context:
space:
mode:
authorunknown <serg@serg.mysql.com>2001-11-08 00:06:07 +0100
committerunknown <serg@serg.mysql.com>2001-11-08 00:06:07 +0100
commit7e6161287ef4f8d112af04d60723fa410e2b9fa6 (patch)
tree57e47c348efe428aa84238f656e05060bae45a6b /myisam/ft_boolean_search.c
parent74e044c0db38bb09e168ad1ece001051fd4ef567 (diff)
downloadmariadb-git-7e6161287ef4f8d112af04d60723fa410e2b9fa6.tar.gz
bug in relevance calculation fixed
Diffstat (limited to 'myisam/ft_boolean_search.c')
-rw-r--r--myisam/ft_boolean_search.c3
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;
}
}