[
http://issues.apache.org/jira/browse/LUCENE-593?page=comments#action_12415327 ]
Karl Wettin commented on LUCENE-593:
------------------------------------
> 1) If hasNext is called more than once, items are skipped
Why do you call this method manually?
> 2) Much more seriously, when comparing fieldnames it is done with != rather
> than .equals() with the potential result that nothing is indexed
True, but also false. The field passed on to the constructor should be
internald. And then all is good.
public LuceneDictionary(IndexReader reader, String field) {
this.reader = reader;
this.field = field;
this.field.intern();
}
> Spellchecker's dictionary iterator misbehaves
> ---------------------------------------------
>
> Key: LUCENE-593
> URL: http://issues.apache.org/jira/browse/LUCENE-593
> Project: Lucene - Java
> Type: Bug
> Components: Search
> Versions: 2.0.0
> Environment: Any (mine is Fedora Core 4 - Linux pc983 2.6.16-1.2111_FC4 #1
> Sat May 20 19:59:40 EDT 2006 i686 i686 i386 GNU/Linux)
> Reporter: Kåre Fiedler Christiansen
>
> In LuceneDictionary, the LuceneIterator.hasNext() method has two issues that
> makes it misbehave:
> 1) If hasNext is called more than once, items are skipped
> 2) Much more seriously, when comparing fieldnames it is done with != rather
> than .equals() with the potential result that nothing is indexed
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]