Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Correct rebuilt persian analyzer (#38724) #39250

Merged
merged 1 commit into from
Feb 21, 2019

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