From 9388df70633757b1501e1740c45a91100b1e2834 Mon Sep 17 00:00:00 2001
From: neil_a_wilson <neil_a_wilson@localhost>
Date: Mon, 20 Nov 2006 18:04:42 +0000
Subject: [PATCH] Update the double metaphone approximate matching rule implementation to fix a bug in which "TH" was incorrectly mapped to a capital letter "O" (oh) instead of the number "0" (zero).
---
opendj-sdk/opends/src/server/org/opends/server/schema/DoubleMetaphoneApproximateMatchingRule.java | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/opendj-sdk/opends/src/server/org/opends/server/schema/DoubleMetaphoneApproximateMatchingRule.java b/opendj-sdk/opends/src/server/org/opends/server/schema/DoubleMetaphoneApproximateMatchingRule.java
index c64a07a..50acb91 100644
--- a/opendj-sdk/opends/src/server/org/opends/server/schema/DoubleMetaphoneApproximateMatchingRule.java
+++ b/opendj-sdk/opends/src/server/org/opends/server/schema/DoubleMetaphoneApproximateMatchingRule.java
@@ -1025,7 +1025,7 @@
// TH or TTH will be mapped to either T (for Germanic cases) or
- // O for the rest.
+ // 0 (zero) for the rest.
if (((posPlusOne = valueString.charAt(pos+1)) == 'H') ||
((posPlusOne == 'T') && (valueString.charAt(pos+2) == 'H')))
{
@@ -1037,7 +1037,7 @@
}
else
{
- metaphone.append("O");
+ metaphone.append("0");
}
pos += 2;
--
Gitblit v1.10.0