You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "tom liu (JIRA)" <ji...@apache.org> on 2010/12/21 09:34:01 UTC

[jira] Created: (LUCENE-2827) JaroWinklerDistance returns 0f when s1.length()=s2.length()=0

JaroWinklerDistance returns 0f when s1.length()=s2.length()=0
-------------------------------------------------------------

                 Key: LUCENE-2827
                 URL: https://issues.apache.org/jira/browse/LUCENE-2827
             Project: Lucene - Java
          Issue Type: Bug
          Components: contrib/spellchecker
    Affects Versions: 4.0
         Environment: JDK1.6.17
            Reporter: tom liu


StringDistance sd = new JaroWinklerDistance();
System.out.println(sd.getDistance("",""));

console prints 0.

but when use LevensteinDistance or NGramDistance, that console prints 1.0

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org