Skip to content

Commit 4a8d18b

Browse files
authored
Correct rebuilt persian analyzer (#38724) (#38744) (#39250)
Make substitution of \u200C with a space explicit The problem with this symbol `\u200C` in a test string, that **SHOULD** be substituted with space in the rebuilt Persian analyzer, but it is not. Correcting this line `"mappings": [ "\\u200C=> "] <1>` to `"mappings": [ "\\u200C=>\\u0020"] <1>` in solves the problem. This change explicitly says to substitute ZWNJ with a space. Closes #38188
1 parent da31b0c commit 4a8d18b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/reference/analysis/analyzers/lang-analyzer.asciidoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1358,7 +1358,7 @@ PUT /persian_example
13581358
"char_filter": {
13591359
"zero_width_spaces": {
13601360
"type": "mapping",
1361-
"mappings": [ "\\u200C=> "] <1>
1361+
"mappings": [ "\\u200C=>\\u0020"] <1>
13621362
}
13631363
},
13641364
"filter": {

0 commit comments

Comments
 (0)