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
|