Query-based configuration of text retrieval solutions for software engineering tasks