adding result rank to queryInfo