[3.8] Fix #1456 : Thesaurus queries don't work