finish search function

Signed-off-by: Karel Kellner <karel@kellner.be>