Skip to content

Conversation

@benwtrent
Copy link
Member

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

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 elastic#38188
@benwtrent benwtrent added >bug >docs General docs changes backport labels Feb 21, 2019
@benwtrent benwtrent merged commit 4a8d18b into elastic:7.0 Feb 21, 2019
@benwtrent benwtrent deleted the backport/persian-analyzer-fix branch February 21, 2019 15:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport >bug >docs General docs changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants