Refine when search logic should fire