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
lang-analyzer solves the problem.
This change explicitly says to substitute ZWNJ with a space.

Closes #38188

Make substitution of \u200C with a space explicit

Closes elastic#38188
Copy link
Member

@cbuescher cbuescher left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, LGTM

Copy link
Member

@cbuescher cbuescher left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually, looking at #38188 (comment) which was just added it seems other analyzers in this documentation page might have similar issues. Can you check if that failure is related and maybe fix it in the same PR?

Copy link
Member

@cbuescher cbuescher left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry for the noise, just doule-checked and its the same error on 7.x. I missread the line-numbers and thought they are different.

@mayya-sharipova
Copy link
Contributor Author

@cbuescher thanks a lot

@mayya-sharipova mayya-sharipova merged commit da63ee5 into elastic:master Feb 11, 2019
@mayya-sharipova mayya-sharipova deleted the correct-persian-analyzer-rebuilt branch February 11, 2019 15:46
@mayya-sharipova mayya-sharipova added >docs General docs changes v7.2.0 and removed :Docs v7.0.0 labels Feb 11, 2019
mayya-sharipova added a commit that referenced this pull request 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.

Closes #38188
mayya-sharipova added a commit to mayya-sharipova/elasticsearch that referenced this pull request 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.

Closes elastic#38188
mayya-sharipova added a commit that referenced this pull request 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.

Closes #38188
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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

DocsClientYamlTestSuiteIT.test {yaml=reference/analysis/analyzers/lang-analyzer/line_1353} fails on 6.x with incorrect offset

3 participants