mirror of https://github.com/apache/lucene.git
- LUCENE-593, inner Iterator fixed
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@418368 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
d13def5f21
commit
ddae8f0c57
|
@ -69,7 +69,10 @@ Bug fixes
|
|||
10. LUCENE-451: All core query types now use ComplexExplanations so that
|
||||
boosts of zero don't confuse the BooleanWeight explain method.
|
||||
(Chris Hostetter)
|
||||
|
||||
|
||||
11. LUCENE-593: Fixed inner Iterator
|
||||
(Kåre Fiedler Christiansen via Otis Gospodnetic)
|
||||
|
||||
Optimizations
|
||||
|
||||
1. LUCENE-586: TermDocs.skipTo() is now more efficient for multi-segment
|
||||
|
|
|
@ -66,6 +66,9 @@ public class LuceneDictionary implements Dictionary {
|
|||
}
|
||||
|
||||
public boolean hasNext() {
|
||||
if (hasNextCalled) {
|
||||
return actualTerm != null;
|
||||
}
|
||||
hasNextCalled = true;
|
||||
try {
|
||||
// if there are no more words
|
||||
|
@ -87,6 +90,8 @@ public class LuceneDictionary implements Dictionary {
|
|||
}
|
||||
}
|
||||
|
||||
public void remove() {}
|
||||
public void remove() {
|
||||
throw new UnsupportedOperationException();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue