Skip to content

Conversation

russcam
Copy link
Contributor

@russcam russcam commented May 23, 2019

This commit adds JsonProperty attributes to SuggestBucket to ensure
that properties are correctly serialized when a DefaultFieldNameInferrer delegate is passed.

These are required because the concrete SuggestBucket is not passed and serialized as the
ISuggestBucket interface in the VerbatimDictionaryKeysJsonConverter WriteJson method.

Fixes issue found by https://discuss.elastic.co/t/nest-suggester-errors/179634/5

This commit adds JsonProperty attributes to SuggestBucket to ensure
that properties are correctly serialized when a DefaultFieldNameInferrer delegate is passed.

These are required because the concrete SuggestBucket is not passed and serialized as the
ISuggestBucket interface in the VerbatimDictionaryKeysJsonConverter WriteJson method.
@codebrain codebrain merged commit e736c06 into 6.x May 28, 2019
codebrain added a commit that referenced this pull request May 30, 2019
@codebrain
Copy link
Contributor

Ported to 7.x

@Mpdreamz Mpdreamz deleted the fix/discuss-179634 branch June 17, 2019 12:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants