From 39e5496b96dff5a81bf9d5e497f3f88a9b2194c4 Mon Sep 17 00:00:00 2001 From: Mayya Sharipova Date: Mon, 11 Feb 2019 14:17:18 -0500 Subject: [PATCH] Correct rebuilt persian analyzer (#38724) (#38744) 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 --- docs/reference/analysis/analyzers/lang-analyzer.asciidoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/reference/analysis/analyzers/lang-analyzer.asciidoc b/docs/reference/analysis/analyzers/lang-analyzer.asciidoc index 9a4dcbe8aaac7..099950ca39567 100644 --- a/docs/reference/analysis/analyzers/lang-analyzer.asciidoc +++ b/docs/reference/analysis/analyzers/lang-analyzer.asciidoc @@ -1358,7 +1358,7 @@ PUT /persian_example "char_filter": { "zero_width_spaces": { "type": "mapping", - "mappings": [ "\\u200C=> "] <1> + "mappings": [ "\\u200C=>\\u0020"] <1> } }, "filter": {