Given a term (e.g. "apple") and a document in index, how can I get the term weight in this document? Is this weight equal to the tf*idf value of this term? If no, how can I get the tf*idf value? (In fact this value is what I am interested in looking for).