This is an automated email from the ASF dual-hosted git repository.

shuber pushed a commit to branch opensearch-persistence
in repository https://gitbox.apache.org/repos/asf/unomi.git


The following commit(s) were added to refs/heads/opensearch-persistence by this 
push:
     new ddfbf1e6b Refactor PropertyConditionEvaluator to use foldToASCII for 
string comparison, aligning with analyzer configuration behavior
ddfbf1e6b is described below

commit ddfbf1e6b39d18004f6601a7c4970bc4bbab033d
Author: Serge Huber <[email protected]>
AuthorDate: Mon Oct 13 20:43:42 2025 +0200

    Refactor PropertyConditionEvaluator to use foldToASCII for string 
comparison, aligning with analyzer configuration behavior
---
 .../conditions/PropertyConditionEvaluator.java           | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)

diff --git 
a/plugins/baseplugin/src/main/java/org/apache/unomi/plugins/baseplugin/conditions/PropertyConditionEvaluator.java
 
b/plugins/baseplugin/src/main/java/org/apache/unomi/plugins/baseplugin/conditions/PropertyConditionEvaluator.java
index cc1bd7b9a..f5a3a711f 100644
--- 
a/plugins/baseplugin/src/main/java/org/apache/unomi/plugins/baseplugin/conditions/PropertyConditionEvaluator.java
+++ 
b/plugins/baseplugin/src/main/java/org/apache/unomi/plugins/baseplugin/conditions/PropertyConditionEvaluator.java
@@ -9,13 +9,13 @@
  *      http://www.apache.org/licenses/LICENSE-2.0
  *
  * Unless required by applicable law or agreed to in writing, software
-        * distributed under the License is distributed on an "AS IS" BASIS,
-        * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 
implied.
-        * See the License for the specific language governing permissions and
-        * limitations under the License.
-        */
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 
-        package org.apache.unomi.plugins.baseplugin.conditions;
+package org.apache.unomi.plugins.baseplugin.conditions;
 
 import org.apache.commons.lang3.ObjectUtils;
 import org.apache.commons.lang3.StringUtils;
@@ -80,8 +80,8 @@ public class PropertyConditionEvaluator implements 
ConditionEvaluator {
         } else if (expectedValueDateExpr != null) {
             return 
getDate(actualValue).compareTo(getDate(expectedValueDateExpr));
         } else {
-            // We use toLowerCase here to match the behavior of the analyzer 
configuration in the persistence configuration
-            return 
actualValue.toString().toLowerCase().compareTo(expectedValue);
+            // We use foldToASCII here to match the behavior of the analyzer 
configuration in the persistence configuration
+            return 
ConditionContextHelper.foldToASCII(actualValue.toString()).compareTo(expectedValue);
         }
     }
 

Reply via email to