elasticsearch-java
elasticsearch-java copied to clipboard
Builtin GeoPoint shape
Description
Hi.
It is not possible to build a geo_shape query with the type of point with existing shape and query builders in elastic java client v8.6.0. There is GeoLine shape but it requires multiple lists of coordinates.
Desired search request is:
"geo_shape": {
"field_name": {
"shape": {
"type": "point",
"coordinates": [
29.0,
40.0
]
}
}
}
It can be achieved with a custom GeoPoint shape class but I think it would be nice to have it along with the GeoLine in the client api.