int numDocs = filterIndexReader.numDocs(); ... idf = Math.log10((double) numDocs / docFreq); Sethu_424 wrote > > wrong formula. numDoc should not be a count of documents in index - but documents containing searching term. We need something like IndexReader.docFreq( term );
-- View this message in context: http://lucene.472066.n3.nabble.com/Getting-DF-IDF-tp547386p3984938.html Sent from the Lucene - Java Users mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org For additional commands, e-mail: java-user-h...@lucene.apache.org