A two-stage code search framework, TOSS, that combines the advantages of different code search methods to achieve state-of-the-art performance with improved efficiency.