Text search

Backend and frontend changes for text search.