mirror of https://github.com/apache/lucene.git
fixing typos in comments
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150662 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
308811b558
commit
c4fb0d010f
|
@ -205,7 +205,7 @@ public final class FuzzyTermEnum extends FilteredTermEnum {
|
||||||
final int m = target.length();
|
final int m = target.length();
|
||||||
final int n = text.length();
|
final int n = text.length();
|
||||||
if (n == 0) {
|
if (n == 0) {
|
||||||
//we don't have antyhing to compare. That means if we just add
|
//we don't have anything to compare. That means if we just add
|
||||||
//the letters for m we get the new word
|
//the letters for m we get the new word
|
||||||
return prefix.length() == 0 ? 0.0f : 1.0f - ((float) m / prefix.length());
|
return prefix.length() == 0 ? 0.0f : 1.0f - ((float) m / prefix.length());
|
||||||
}
|
}
|
||||||
|
@ -221,7 +221,7 @@ public final class FuzzyTermEnum extends FilteredTermEnum {
|
||||||
//for example "pre" length is 3 and "prefixes" length is 8. We can see that
|
//for example "pre" length is 3 and "prefixes" length is 8. We can see that
|
||||||
//given this optimal circumstance, the edit distance cannot be less than 5.
|
//given this optimal circumstance, the edit distance cannot be less than 5.
|
||||||
//which is 8-3 or more precisesly Math.abs(3-8).
|
//which is 8-3 or more precisesly Math.abs(3-8).
|
||||||
//if our maximum edit distance is 4, than we can discard this word
|
//if our maximum edit distance is 4, then we can discard this word
|
||||||
//without looking at it.
|
//without looking at it.
|
||||||
return 0.0f;
|
return 0.0f;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue