mirror of https://github.com/apache/lucene.git
termDocs.close() moved.
Before that termDocs was used though it had already been closed! git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150090 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
b6884a0cba
commit
17af7399fd
|
@ -157,12 +157,8 @@ public class DateFilter extends Filter {
|
|||
Term stop = new Term(field, end);
|
||||
while (enumerator.term().compareTo(stop) <= 0) {
|
||||
termDocs.seek(enumerator.term());
|
||||
try {
|
||||
while (termDocs.next()) {
|
||||
bits.set(termDocs.doc());
|
||||
}
|
||||
} finally {
|
||||
termDocs.close();
|
||||
while (termDocs.next()) {
|
||||
bits.set(termDocs.doc());
|
||||
}
|
||||
if (!enumerator.next()) {
|
||||
break;
|
||||
|
@ -170,6 +166,7 @@ public class DateFilter extends Filter {
|
|||
}
|
||||
} finally {
|
||||
enumerator.close();
|
||||
termDocs.close();
|
||||
}
|
||||
return bits;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue