Commit d4653c37 authored by unknown's avatar unknown

ignore ft_min_word_len and stopword check for truncated words in the query

parent 8a378344
...@@ -167,8 +167,8 @@ byte ft_get_word(byte **start, byte *end, FT_WORD *word, FTB_PARAM *param) ...@@ -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))) if ((param->trunc=(doc<end && *doc == FTB_TRUNC)))
doc++; doc++;
if (word->len >= ft_min_word_len && word->len < ft_max_word_len && if (((word->len >= ft_min_word_len && !is_stopword(word->pos, word->len))
!is_stopword(word->pos, word->len)) || param->trunc) && word->len < ft_max_word_len)
{ {
*start=doc; *start=doc;
return 1; return 1;
......
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