Modified Query Handler to call phrase and linear ranker