-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Use a custom convertor for GeoOrientation to tolerate alternative options in Elasticsearch #3776
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
Conversation
…ions in Elasticsearch
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.
converter needs to be internal other than that LGTM 👍
Including example cluster metadata state with the transformed |
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.
Left a comment about use of ToLower()
public override object ReadJson(JsonReader reader, Type objectType, object existingValue, JsonSerializer serializer) | ||
{ | ||
var enumString = (string)reader.Value; | ||
switch (enumString.ToLower()) |
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.
think this should use ToLowerInvariant()
, rather than use the current culture
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.
Didn't make the cut for the merge, but will fix for 7.x
…ions in Elasticsearch #3776
The documentation (https://www.elastic.co/guide/en/elasticsearch/reference/current/geo-shape.html) states that there are multiple values possible; 1. Right-hand rule:
right
,ccw
,counterclockwise
, 2. Left-hand rule:left
,cw
,clockwise
.It looks like NEST only supported
cw
andccw
.Cluster metadata exposed
cw
asLEFT
in the responses.