Skip to content

Conversation

@khalidabuhakmeh
Copy link
Contributor

This should only be one value, and not an array.
This is based on documentation from v6+ and v7+.

#4089

This should only be one value, and not an array.
This is based on documentation from v6+ and v7+.

 elastic#4089
@khalidabuhakmeh
Copy link
Contributor Author

I don't think you folks have enough build servers :P

Copy link
Member

@Mpdreamz Mpdreamz left a 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.

@russcam
Copy link
Contributor

russcam commented Sep 27, 2019

Thanks for the PR @khalidabuhakmeh 👍

@russcam russcam merged commit 75c4389 into elastic:master Sep 27, 2019
@russcam russcam self-assigned this Sep 27, 2019
@russcam
Copy link
Contributor

russcam commented Sep 27, 2019

opening a backport for 7.x shortly

russcam added a commit that referenced this pull request Sep 29, 2019
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.
@russcam
Copy link
Contributor

russcam commented Sep 29, 2019

I've opened #4106 to address 7.x

russcam added a commit that referenced this pull request Sep 29, 2019
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.
russcam added a commit that referenced this pull request Sep 30, 2019
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.
russcam added a commit that referenced this pull request Oct 1, 2019
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.
russcam added a commit that referenced this pull request Oct 3, 2019
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.
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