Commit 66d50f46 authored by serg@serg.mysql.com's avatar serg@serg.mysql.com

Merge

parents 8c8acc48 de8acc2e
jcole@tetra.bedford.progress.com jcole@tetra.bedford.progress.com
sasha@mysql.sashanet.com
sasha@work.mysql.com
serg@serg.mysql.com
...@@ -47,9 +47,6 @@ static int FT_WORD_cmp(FT_WORD *w1, FT_WORD *w2) ...@@ -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) 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; word->weight=LWS_IN_USE;
#ifdef EVAL_RUN #ifdef EVAL_RUN
...@@ -142,6 +139,7 @@ TREE * ft_parse(TREE *wtree, byte *doc, int doclen) ...@@ -142,6 +139,7 @@ TREE * ft_parse(TREE *wtree, byte *doc, int doclen)
if (!word_char(*doc)) break; if (!word_char(*doc)) break;
if ((w.len= (uint) (doc-w.pos)) < MIN_WORD_LEN) continue; if ((w.len= (uint) (doc-w.pos)) < MIN_WORD_LEN) continue;
if (w.len >= HA_FT_MAXLEN) continue; if (w.len >= HA_FT_MAXLEN) continue;
if (is_stopword(w.pos, w.len)) continue;
if (!tree_insert(wtree, &w, 0)) if (!tree_insert(wtree, &w, 0))
{ {
delete_tree(wtree); delete_tree(wtree);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment