Skip to content

Commit

Permalink
Adds GeoJSON format to geopoint (opensearch-project#1806)
Browse files Browse the repository at this point in the history
Signed-off-by: Fanit Kolchina <[email protected]>

Signed-off-by: Fanit Kolchina <[email protected]>
  • Loading branch information
kolchfa-aws authored Nov 4, 2022
1 parent 7d49496 commit 01b2aa5
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions _opensearch/supported-field-types/geo-point.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 01b2aa5

Please sign in to comment.