lucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mikemcc...@apache.org
Subject svn commit: r1031689 - /lucene/dev/trunk/lucene/src/java/org/apache/lucene/index/CheckIndex.java
Date Fri, 05 Nov 2010 18:17:06 GMT
Author: mikemccand
Date: Fri Nov  5 18:17:06 2010
New Revision: 1031689

URL: http://svn.apache.org/viewvc?rev=1031689&view=rev
Log:
LUCENE-2744: only print number of fields w/ norms on 'test: norms....' CheckIndex output

Modified:
    lucene/dev/trunk/lucene/src/java/org/apache/lucene/index/CheckIndex.java

Modified: lucene/dev/trunk/lucene/src/java/org/apache/lucene/index/CheckIndex.java
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/lucene/src/java/org/apache/lucene/index/CheckIndex.java?rev=1031689&r1=1031688&r2=1031689&view=diff
==============================================================================
--- lucene/dev/trunk/lucene/src/java/org/apache/lucene/index/CheckIndex.java (original)
+++ lucene/dev/trunk/lucene/src/java/org/apache/lucene/index/CheckIndex.java Fri Nov  5 18:17:06
2010
@@ -552,8 +552,8 @@ public class CheckIndex {
       for (final String fieldName : fieldNames) {
         if (reader.hasNorms(fieldName)) {
           reader.norms(fieldName, b, 0);
+          ++status.totFields;
         }
-        ++status.totFields;
       }
 
       msg("OK [" + status.totFields + " fields]");



Mime
View raw message