lucene-java-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dna...@apache.org
Subject svn commit: r598072 - /lucene/java/trunk/src/java/org/apache/lucene/search/TermQuery.java
Date Sun, 25 Nov 2007 22:39:38 GMT
Author: dnaber
Date: Sun Nov 25 14:39:33 2007
New Revision: 598072

URL: http://svn.apache.org/viewvc?rev=598072&view=rev
Log:
LUCENE-1066: better explain output for idf

Modified:
    lucene/java/trunk/src/java/org/apache/lucene/search/TermQuery.java

Modified: lucene/java/trunk/src/java/org/apache/lucene/search/TermQuery.java
URL: http://svn.apache.org/viewvc/lucene/java/trunk/src/java/org/apache/lucene/search/TermQuery.java?rev=598072&r1=598071&r2=598072&view=diff
==============================================================================
--- lucene/java/trunk/src/java/org/apache/lucene/search/TermQuery.java (original)
+++ lucene/java/trunk/src/java/org/apache/lucene/search/TermQuery.java Sun Nov 25 14:39:33
2007
@@ -77,7 +77,8 @@
       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();



Mime
View raw message