Text search

Backend and frontend changes for text search. For issue #60.