You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-commits@lucene.apache.org by ot...@apache.org on 2006/06/30 22:14:48 UTC
svn commit: r418368 - in /lucene/java/trunk: CHANGES.txt
contrib/spellchecker/src/java/org/apache/lucene/search/spell/LuceneDictionary.java
Author: otis
Date: Fri Jun 30 13:14:48 2006
New Revision: 418368
URL: http://svn.apache.org/viewvc?rev=418368&view=rev
Log:
- LUCENE-593, inner Iterator fixed
Modified:
lucene/java/trunk/CHANGES.txt
lucene/java/trunk/contrib/spellchecker/src/java/org/apache/lucene/search/spell/LuceneDictionary.java
Modified: lucene/java/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/lucene/java/trunk/CHANGES.txt?rev=418368&r1=418367&r2=418368&view=diff
==============================================================================
--- lucene/java/trunk/CHANGES.txt (original)
+++ lucene/java/trunk/CHANGES.txt Fri Jun 30 13:14:48 2006
@@ -69,7 +69,10 @@
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
Modified: lucene/java/trunk/contrib/spellchecker/src/java/org/apache/lucene/search/spell/LuceneDictionary.java
URL: http://svn.apache.org/viewvc/lucene/java/trunk/contrib/spellchecker/src/java/org/apache/lucene/search/spell/LuceneDictionary.java?rev=418368&r1=418367&r2=418368&view=diff
==============================================================================
--- lucene/java/trunk/contrib/spellchecker/src/java/org/apache/lucene/search/spell/LuceneDictionary.java (original)
+++ lucene/java/trunk/contrib/spellchecker/src/java/org/apache/lucene/search/spell/LuceneDictionary.java Fri Jun 30 13:14:48 2006
@@ -66,6 +66,9 @@
}
public boolean hasNext() {
+ if (hasNextCalled) {
+ return actualTerm != null;
+ }
hasNextCalled = true;
try {
// if there are no more words
@@ -87,6 +90,8 @@
}
}
- public void remove() {}
+ public void remove() {
+ throw new UnsupportedOperationException();
+ }
}
}