Skip to content

Conversation

@mayya-sharipova
Copy link
Contributor

@mayya-sharipova mayya-sharipova commented Feb 11, 2019

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.

backport for #38724

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
@mayya-sharipova mayya-sharipova added >docs General docs changes backport >bug labels Feb 11, 2019
@mayya-sharipova mayya-sharipova merged commit 0e1b195 into elastic:7.x Feb 11, 2019
@mayya-sharipova mayya-sharipova deleted the correct-persian-analyzer-rebuilt7.x branch February 11, 2019 19:17
benwtrent pushed a commit to benwtrent/elasticsearch that referenced this pull request Feb 21, 2019
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 added a commit that referenced this pull request Feb 21, 2019
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
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.

1 participant