Is it possible to implement search this way?