Used tf-idf to rank results. Working fine with field and multiword queries