Skip to content

armgit / solr

Public Imported from GitHub
0

Apache Solr open-source search software

- LUCENE-593, inner Iterator fixed

Otis Gospodneticddae8f0c570b
diff --git a/CHANGES.txt b/CHANGES.txt
index b248ad637f4..3ee39eb3d5d 100644
--- a/CHANGES.txt
+++ b/CHANGES.txt
@@ -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
diff --git a/contrib/spellchecker/src/java/org/apache/lucene/search/spell/LuceneDictionary.java b/contrib/spellchecker/src/java/org/apache/lucene/search/spell/LuceneDictionary.java
index 000e55081f7..91362f80131 100755
--- a/contrib/spellchecker/src/java/org/apache/lucene/search/spell/LuceneDictionary.java
+++ b/contrib/spellchecker/src/java/org/apache/lucene/search/spell/LuceneDictionary.java
@@ -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();
+ }
}
}