Commit 16e16e7d authored by serg@serg.mysql.com's avatar serg@serg.mysql.com
Browse files

ignore ft_min_word_len and stopword check for truncated words in the query

parent 2f51cf20
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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;