Exports search function