lewismc commented on code in PR #869:
URL: https://github.com/apache/nutch/pull/869#discussion_r2443607004
##########
src/java/org/apache/nutch/metadata/SpellCheckedMetadata.java:
##########
@@ -115,7 +115,7 @@ public static String getNormalizedName(final String name) {
if ((value == null) && (normalized != null)) {
int threshold = Math.min(3, searched.length() / TRESHOLD_DIVIDER);
for (int i = 0; i < normalized.length && value == null; i++) {
- if (StringUtils.getLevenshteinDistance(searched, normalized[i]) <
threshold) {
+ if (StringUtils.compareIgnoreCase(searched, normalized[i]) <
threshold) { //.getLevenshteinDistance(searched, normalized[i]) < threshold) {
Review Comment:
I still need to investigate whether this is a suitable replacement and also
need to remove thie comment.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]