elastic / elastic/elasticsearch-java

Builtin GeoPoint shape

Open
#501 4 comments 1 reaction 0 assignees View on GitHub
Dominant language
Java
Stars
524
Forks
300
Avg merge
1d 11h
Merged PRs (30d)
16

Description

### 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](https://gist.github.com/ozcanyus/fda2818f1ac88fbf0b26afaced1a8b21) class but I think it would be nice to have it along with the `GeoLine` in the client api.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.