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-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org

Reply via email to