From d4653c37ddc957c94937d5770d0b0fd1e1605bc9 Mon Sep 17 00:00:00 2001 From: unknown Date: Tue, 13 Nov 2001 19:25:06 +0100 Subject: [PATCH] ignore ft_min_word_len and stopword check for truncated words in the query --- myisam/ft_parser.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/myisam/ft_parser.c b/myisam/ft_parser.c index def49d17b74..b09ede78364 100644 --- a/myisam/ft_parser.c +++ b/myisam/ft_parser.c @@ -167,8 +167,8 @@ byte ft_get_word(byte **start, byte *end, FT_WORD *word, FTB_PARAM *param) if ((param->trunc=(doclen >= ft_min_word_len && word->len < ft_max_word_len && - !is_stopword(word->pos, word->len)) + if (((word->len >= ft_min_word_len && !is_stopword(word->pos, word->len)) + || param->trunc) && word->len < ft_max_word_len) { *start=doc; return 1;