Add search interface

It just works but isn't completed yet.