You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by dw...@apache.org on 2020/09/15 17:07:41 UTC

[lucene-solr] branch master updated: Fix corrupted umlaut characters. This was introduced back in 2009...

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

dweiss pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/lucene-solr.git


The following commit(s) were added to refs/heads/master by this push:
     new 9b9b0a6  Fix corrupted umlaut characters. This was introduced back in 2009...
9b9b0a6 is described below

commit 9b9b0a63398c370d103861cceb350b7618446a8e
Author: Dawid Weiss <da...@carrotsearch.com>
AuthorDate: Tue Sep 15 19:07:30 2020 +0200

    Fix corrupted umlaut characters. This was introduced back in 2009...
---
 .../apache/lucene/queryparser/flexible/standard/TestQPHelper.java | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/lucene/queryparser/src/test/org/apache/lucene/queryparser/flexible/standard/TestQPHelper.java b/lucene/queryparser/src/test/org/apache/lucene/queryparser/flexible/standard/TestQPHelper.java
index 2a265e9..717a013 100644
--- a/lucene/queryparser/src/test/org/apache/lucene/queryparser/flexible/standard/TestQPHelper.java
+++ b/lucene/queryparser/src/test/org/apache/lucene/queryparser/flexible/standard/TestQPHelper.java
@@ -438,9 +438,9 @@ public class TestQPHelper extends LuceneTestCase {
     assertQueryEquals("field=a", null, "a");
     assertQueryEquals("\"term germ\"~2", null, "\"term germ\"~2");
     assertQueryEquals("term term term", null, "term term term");
-    assertQueryEquals("t�rm term term", new MockAnalyzer(random(), MockTokenizer.WHITESPACE, false),
-        "t�rm term term");
-    assertQueryEquals("�mlaut", new MockAnalyzer(random(), MockTokenizer.WHITESPACE, false), "�mlaut");
+    assertQueryEquals("türm term term", new MockAnalyzer(random(), MockTokenizer.WHITESPACE, false),
+        "türm term term");
+    assertQueryEquals("ümlaut", new MockAnalyzer(random(), MockTokenizer.WHITESPACE, false), "ümlaut");
 
     // FIXME: change MockAnalyzer to not extend CharTokenizer for this test
     //assertQueryEquals("\"\"", new KeywordAnalyzer(), "");
@@ -523,7 +523,7 @@ public class TestQPHelper extends LuceneTestCase {
   }
 
   public void testNumber() throws Exception {
-    // The numbers go away because SimpleAnalzyer ignores them
+    // The numbers go away because SimpleAnalyzer ignores them
     assertMatchNoDocsQuery("3", null);
     assertQueryEquals("term 1.0 1 2", null, "term");
     assertQueryEquals("term term1 term2", null, "term term term");