Full-text search: Fix retrieving of some headwords for BGL dictionaries