-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Precision on GeoSuggestContext Is A Single Value #4091
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
Precision on GeoSuggestContext Is A Single Value #4091
Conversation
This should only be one value, and not an array. This is based on documentation from v6+ and v7+. elastic#4089
|
I don't think you folks have enough build servers :P |
Mpdreamz
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM but we won't be able to backport this in this form to 7.x due to breaking changes.
We'll need a custom json formatter for those branches.
|
Thanks for the PR @khalidabuhakmeh 👍 |
|
opening a backport for 7.x shortly |
Relates: #4091 This commit adds a SerializeAsSingleFormatter<T> to serialize only the first value in the Precision collection for a GeoSuggestContext context mapping for the "completion" field data type. Move the Context mapping related types to the Nest/Mapping/Types/Specialized/Completion directory to disambiguate from the context query types. Deprecate the Neighbors property on IGeoSuggestContext.
|
I've opened #4106 to address 7.x |
Relates: #4091 This commit removes the Neighbors property from Completion field data type mapping and updates the Precision type to a Union<Distance,int> to match the context suggest query inputs.
Relates: #4091 This commit adds a SerializeAsSingleFormatter<T> to serialize only the first value in the Precision collection for a GeoSuggestContext context mapping for the "completion" field data type. Move the Context mapping related types to the Nest/Mapping/Types/Specialized/Completion directory to disambiguate from the context query types. Deprecate the Neighbors property on IGeoSuggestContext.
Relates: #4091 This commit adds a SerializeAsSingleFormatter<T> to serialize only the first value in the Precision collection for a GeoSuggestContext context mapping for the "completion" field data type. Move the Context mapping related types to the Nest/Mapping/Types/Specialized/Completion directory to disambiguate from the context query types. Deprecate the Neighbors property on IGeoSuggestContext.
Relates: #4091 This commit removes the Neighbors property from Completion field data type mapping and updates the Precision type to a Union<Distance,int>, to match the context suggest query inputs.
This should only be one value, and not an array.
This is based on documentation from v6+ and v7+.
#4089