summaryrefslogtreecommitdiff
path: root/myisam
diff options
context:
space:
mode:
authorserg@serg.mysql.com <>2000-11-09 11:38:07 +0100
committerserg@serg.mysql.com <>2000-11-09 11:38:07 +0100
commitf8078dccf61cdb308e70f6ebea8a82c7696f1390 (patch)
treecc79e77465a581edec832b6882f5a342a01089a9 /myisam
parentfddab55df3f6455c6a91f5c9300d58ef34d3165e (diff)
downloadmariadb-git-f8078dccf61cdb308e70f6ebea8a82c7696f1390.tar.gz
ft_parser.c minor bug that causes slightly incorrect weights and was found only by occation fixed
Diffstat (limited to 'myisam')
-rw-r--r--myisam/ft_parser.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/myisam/ft_parser.c b/myisam/ft_parser.c
index 838901bf049..7ea2e240c36 100644
--- a/myisam/ft_parser.c
+++ b/myisam/ft_parser.c
@@ -47,9 +47,6 @@ static int FT_WORD_cmp(FT_WORD *w1, FT_WORD *w2)
static int walk_and_copy(FT_WORD *word,uint32 count,FT_DOCSTAT *docstat)
{
- if(is_stopword(word->pos, word->len))
- return 0;
-
word->weight=LWS_IN_USE;
#ifdef EVAL_RUN
@@ -142,6 +139,7 @@ TREE * ft_parse(TREE *wtree, byte *doc, int doclen)
if (!word_char(*doc)) break;
if ((w.len= (uint) (doc-w.pos)) < MIN_WORD_LEN) continue;
if (w.len >= HA_FT_MAXLEN) continue;
+ if (is_stopword(w.pos, w.len)) continue;
if (!tree_insert(wtree, &w, 0))
{
delete_tree(wtree);