summaryrefslogtreecommitdiff
path: root/myisam/ft_parser.c
diff options
context:
space:
mode:
authorserg@serg.mysql.com <>2001-11-13 19:25:06 +0100
committerserg@serg.mysql.com <>2001-11-13 19:25:06 +0100
commit16e16e7d07af00003b1c0ded663247f22e645266 (patch)
tree4b5df5ee5c14cf341b64ac1d02a289ad68fcd08c /myisam/ft_parser.c
parent2f51cf20d811327d27396b3ba27ed250ccc528fc (diff)
downloadmariadb-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.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;