Design and some kind of backend code for search