summaryrefslogtreecommitdiff
path: root/myisam/ft_parser.c
diff options
context:
space:
mode:
authorunknown <serg@serg.mysql.com>2001-11-13 19:25:06 +0100
committerunknown <serg@serg.mysql.com>2001-11-13 19:25:06 +0100
commitd4653c37ddc957c94937d5770d0b0fd1e1605bc9 (patch)
tree4b5df5ee5c14cf341b64ac1d02a289ad68fcd08c /myisam/ft_parser.c
parent8a37834454f3af05dbf9df2ee0bdb73272e5cbb3 (diff)
downloadmariadb-git-d4653c37ddc957c94937d5770d0b0fd1e1605bc9.tar.gz
ignore ft_min_word_len and stopword check for truncated words in the query
Diffstat (limited to 'myisam/ft_parser.c')
-rw-r--r--myisam/ft_parser.c4
1 files 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=(doc<end && *doc == FTB_TRUNC)))
doc++;
- if (word->len >= 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;