lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Karl Wettin (JIRA)" <j...@apache.org>
Subject [jira] Commented: (LUCENE-593) Spellchecker's dictionary iterator misbehaves
Date Thu, 08 Jun 2006 11:57:30 GMT
    [ http://issues.apache.org/jira/browse/LUCENE-593?page=comments#action_12415328 ] 

Karl Wettin commented on LUCENE-593:
------------------------------------

Oups, I ment:

  public LuceneDictionary(IndexReader reader, String field) {
    this.reader = reader;
    this.field = 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: java-dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org


Mime
View raw message