Search_with_refinement