elasticsearch-java icon indicating copy to clipboard operation
elasticsearch-java copied to clipboard

Builtin GeoPoint shape

Open ozcanyus opened this issue 2 years ago • 0 comments

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.

ozcanyus avatar Jan 26 '23 18:01 ozcanyus