Query-based Configuration of Text Retrieval Solutions for Software Engineering Tasks