Optimizing Click-Through in Online Rankings with Endogenous Search Refinement