Skip to content

Fix CustomAnalyzer #2783

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

Merged
merged 1 commit into from
Aug 13, 2024
Merged

Fix CustomAnalyzer #2783

merged 1 commit into from
Aug 13, 2024

Conversation

flobernd
Copy link
Member

@flobernd flobernd commented Aug 12, 2024

CustomAnalyzer is used in the IndexSettings structure for which the server flattens single-element-arrays to the element itself.

This PR fixes deserialization of CustomAnalyzer when e.g. requested by the GetIndexSettings API.

Note: There are more analyzer types with array fields that probably must be adjusted.

Closes: elastic/elasticsearch-net#8291

@flobernd flobernd assigned l-trotta and unassigned l-trotta Aug 12, 2024
@flobernd flobernd requested review from l-trotta and a team August 12, 2024 10:31
@flobernd flobernd merged commit 0868517 into main Aug 13, 2024
8 checks passed
@flobernd flobernd deleted the fix-custom-analyzer branch August 13, 2024 07:08
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.

Elastic.Transport.UnexpectedTransportException with Indices.GetAsync
3 participants