lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ziqi Zhang <ziqi.zh...@sheffield.ac.uk>
Subject get frequency of each term from a document
Date Sun, 20 Sep 2015 13:35:40 GMT
Hi

Is it possible to get a list of terms within a document, and also TF of 
each of these terms *in that document only*? (Lucene 5.3)

IndexReader has a method "Terms getTermVector(int docID, String field)", 
which gives me a "Terms" object, on which I can get a TermsEnum. But I 
do not know where to go then.

thanks


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message