diff options
author | serg@serg.mysql.com <> | 2001-11-13 19:25:06 +0100 |
---|---|---|
committer | serg@serg.mysql.com <> | 2001-11-13 19:25:06 +0100 |
commit | 16e16e7d07af00003b1c0ded663247f22e645266 (patch) | |
tree | 4b5df5ee5c14cf341b64ac1d02a289ad68fcd08c /myisam/ft_parser.c | |
parent | 2f51cf20d811327d27396b3ba27ed250ccc528fc (diff) | |
download | mariadb-git-16e16e7d07af00003b1c0ded663247f22e645266.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.c | 4 |
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; |