Search function changes

Signed-off-by: Dominic Böttger <Dominic.Boettger@inspirationlabs.com>