lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "tom liu (JIRA)" <j...@apache.org>
Subject [jira] Created: (LUCENE-2827) JaroWinklerDistance returns 0f when s1.length()=s2.length()=0
Date Tue, 21 Dec 2010 08:34:01 GMT
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


Mime
View raw message