lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mary S" <smooth....@gmail.com>
Subject Num of a term in a Doc
Date Fri, 02 Jun 2006 10:17:37 GMT
Hi,

I want to get the freq of a term in a Doc.

public int termFreq( int docID, String termName ) {

   IndexReader reader = IndexReader.open(directory);
   Document doc = reader.document(docID);

   int FreqForTerm = doc.... ???
   return FreqForTerm;
}


I didn't find what I want in the archives.

Can someone please assist?


Mary

---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Mime
View raw message