Update search logic