LUCENE-1066: better explain output for idf

git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@598072 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Daniel Naber 2007-11-25 22:39:33 +00:00
parent c70ec4af66
commit f668a48266
1 changed files with 2 additions and 1 deletions

View File

@ -77,7 +77,8 @@ public class TermQuery extends Query {
result.setDescription("weight("+getQuery()+" in "+doc+"), product of:");
Explanation idfExpl =
new Explanation(idf, "idf(docFreq=" + reader.docFreq(term) + ")");
new Explanation(idf, "idf(docFreq=" + reader.docFreq(term) +
", numDocs=" + reader.numDocs() + ")");
// explain query weight
Explanation queryExpl = new Explanation();