Geo: Switch generated GeoJson type names to camel case (#50285)#50400
Geo: Switch generated GeoJson type names to camel case (#50285)#50400imotov merged 4 commits intoelastic:masterfrom
Conversation
Switches generated WKT to upper case to conform to the standard recommendation. Closes elastic#49568
|
Pinging @elastic/es-analytics-geo (:Analytics/Geo) |
talevy
left a comment
There was a problem hiding this comment.
I think you meant GeoJson, not WKT?
| @Override | ||
| public String visit(Circle circle) { | ||
| return "circle"; | ||
| return "CIRCLE"; |
There was a problem hiding this comment.
this is for GeoJSON, not WKT. right?
these should all be capitalized using upper-camel-case/pascal-case
Circle, MultiLineString...
There was a problem hiding this comment.
Indeed! Got carried away :)
|
@elasticmachine update branch |
...patial/src/test/java/org/elasticsearch/xpack/spatial/index/query/ShapeQueryBuilderTests.java
Show resolved
Hide resolved
|
@elasticmachine update branch |
|
@elasticmachine run elasticsearch-ci/2 |
Switches generated GeoJson type names to camel case to conform to the standard. Closes #49568
elastic#50400) Switches generated GeoJson type names to camel case to conform to the standard. Closes elastic#49568
|
Hi @imotov |
|
Hi @jennet, This is right, this change was done on 7.6.0 but it does not mean that you get all geojson not in camelcase. Let me explain. Lets create an index an insert to points on with camel case and one without: If you do a search without specifying how to retrieve the values, it returns the One the other hand in 7.16 you can use the fields parameter in the request bodyto return data formatted in geojson. In that case both points are camel case: Hope this helps. |
Switches generated GeoJson type names to camel case
to conform to the standard.
Closes #49568