version 1 of document ranking sample using TF*IDF