• Sergey Vojtovich's avatar
    BUG#37245 - Full text search problem · 589ac1cf
    Sergey Vojtovich authored
    Certain boolean mode queries with truncation operator did
    not return matching records and calculate relevancy
    incorrectly.
    
    myisam/ft_boolean_search.c:
      Sort ftb->list in ascending order. This helps to fix binary
      search in ft_boolean_find_relevance() without rewriting it
      much.
      
      Fixed binary search in ft_boolean_find_relevance(), so it finds
      right-most element in an array.
      
      Fixed that ft_boolean_find_relevance() didn't return match for
      words with truncation operator in case query has other non-
      matching words.
    mysql-test/r/fulltext.result:
      A test case for BUG#37245.
    mysql-test/t/fulltext.test:
      A test case for BUG#37245.
    589ac1cf
fulltext.result 19.9 KB