Fix bug in full text search. Fixes #353.