Adds GeoJSON format to geopoint (#1806)

Signed-off-by: Fanit Kolchina <kolchfa@amazon.com>

Signed-off-by: Fanit Kolchina <kolchfa@amazon.com>
This commit is contained in:
kolchfa-aws 2022-11-03 20:26:31 -04:00 committed by GitHub
parent 7d49496097
commit 01b2aa525a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 11 additions and 0 deletions

View File

@ -80,6 +80,17 @@ PUT testindex1/_doc/5
}
```
- GeoJSON format, where the `coordinates` are in the [`longitude`, `latitude`] format
```json
PUT testindex1/_doc/6
{
"point": {
"type": "Point",
"coordinates": [74.00, 40.71]
}
```
## Parameters
The following table lists the parameters accepted by geopoint field types. All parameters are optional.