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:
Michael McCandless 2009-06-02 19:37:59 +00:00
parent 73fd2318fd
commit 8a4a3eeed1
1 changed files with 1 additions and 1 deletions

View File

@ -81,7 +81,7 @@ public class LatLongDistanceFilter extends DistanceFilter {
public BitSet bits(IndexReader reader) throws IOException { public BitSet bits(IndexReader reader) throws IOException {
/* Create a BitSet to store the result */ /* Create a BitSet to store the result */
int maxdocs = reader.numDocs(); int maxdocs = reader.maxDoc();
BitSet bits = new BitSet(maxdocs); BitSet bits = new BitSet(maxdocs);
setPrecision(maxdocs); setPrecision(maxdocs);