Bridging the Preference Gap between Retrievers and LLMs