lucene-java-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mikemcc...@apache.org
Subject svn commit: r781136 - /lucene/java/trunk/contrib/spatial/src/java/org/apache/lucene/spatial/tier/LatLongDistanceFilter.java
Date Tue, 02 Jun 2009 19:37:59 GMT
Author: mikemccand
Date: Tue Jun  2 19:37:59 2009
New Revision: 781136

URL: http://svn.apache.org/viewvc?rev=781136&view=rev
Log:
LUCENE-1387: fix numDocs -> maxDoc

Modified:
    lucene/java/trunk/contrib/spatial/src/java/org/apache/lucene/spatial/tier/LatLongDistanceFilter.java

Modified: lucene/java/trunk/contrib/spatial/src/java/org/apache/lucene/spatial/tier/LatLongDistanceFilter.java
URL: http://svn.apache.org/viewvc/lucene/java/trunk/contrib/spatial/src/java/org/apache/lucene/spatial/tier/LatLongDistanceFilter.java?rev=781136&r1=781135&r2=781136&view=diff
==============================================================================
--- lucene/java/trunk/contrib/spatial/src/java/org/apache/lucene/spatial/tier/LatLongDistanceFilter.java
(original)
+++ lucene/java/trunk/contrib/spatial/src/java/org/apache/lucene/spatial/tier/LatLongDistanceFilter.java
Tue Jun  2 19:37:59 2009
@@ -81,7 +81,7 @@
   public BitSet bits(IndexReader reader) throws IOException {
 
     /* Create a BitSet to store the result */
-    int maxdocs = reader.numDocs();
+    int maxdocs = reader.maxDoc();
     BitSet bits = new BitSet(maxdocs);
     
     setPrecision(maxdocs);



Mime
View raw message