mirror of https://github.com/apache/lucene.git
LUCENE-1387: fix numDocs -> maxDoc
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@781136 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
73fd2318fd
commit
8a4a3eeed1
|
@ -81,7 +81,7 @@ public class LatLongDistanceFilter extends DistanceFilter {
|
|||
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);
|
||||
|
|
Loading…
Reference in New Issue