Cleans up full text searching and writes tests.