Fixes geo parameter and examples (#1534)
Signed-off-by: Fanit Kolchina <kolchfa@amazon.com> Signed-off-by: Fanit Kolchina <kolchfa@amazon.com>
This commit is contained in:
parent
2da7b3ab43
commit
8bd6150d20
|
@ -87,5 +87,5 @@ The following table lists the parameters accepted by geopoint field types. All p
|
||||||
Parameter | Description
|
Parameter | Description
|
||||||
:--- | :---
|
:--- | :---
|
||||||
`ignore_malformed` | A Boolean value that specifies to ignore malformed values and not to throw an exception. Valid values for latitude are [-90, 90]. Valid values for longitude are [-180, 180]. Default is `false`.
|
`ignore_malformed` | A Boolean value that specifies to ignore malformed values and not to throw an exception. Valid values for latitude are [-90, 90]. Valid values for longitude are [-180, 180]. Default is `false`.
|
||||||
`ignore_z_values` | Specific to points with three coordinates. If `ignore_z_values` is `true`, the third coordinate is not indexed but is still stored in the _source field. If `ignore_z_values` is `false`, an exception is thrown.
|
`ignore_z_value` | Specific to points with three coordinates. If `ignore_z_value` is `true`, the third coordinate is not indexed but is still stored in the _source field. If `ignore_z_value` is `false`, an exception is thrown.
|
||||||
[`null_value`]({{site.url}}{{site.baseurl}}/opensearch/supported-field-types/index#null-value) | A value to be used in place of `null`. Must be of the same type as the field. If this parameter is not specified, the field is treated as missing when its value is `null`. Default is `null`.
|
[`null_value`]({{site.url}}{{site.baseurl}}/opensearch/supported-field-types/index#null-value) | A value to be used in place of `null`. Must be of the same type as the field. If this parameter is not specified, the field is treated as missing when its value is `null`. Default is `null`.
|
|
@ -316,11 +316,20 @@ A geometry collection is a collection of geoshapes that may be of different type
|
||||||
Index a geometry collection in GeoJSON format:
|
Index a geometry collection in GeoJSON format:
|
||||||
|
|
||||||
```json
|
```json
|
||||||
PUT testindex/_doc/2
|
PUT testindex/_doc/7
|
||||||
{
|
{
|
||||||
"location" : {
|
"location" : {
|
||||||
"type" : "linestring",
|
"type": "geometrycollection",
|
||||||
"coordinates" : [[74.0060, 40.7128], [71.0589, 42.3601]]
|
"geometries": [
|
||||||
|
{
|
||||||
|
"type": "point",
|
||||||
|
"coordinates": [74.0060, 40.7128]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "linestring",
|
||||||
|
"coordinates": [[73.7562, 42.6526], [72.6734, 41.7658]]
|
||||||
|
}
|
||||||
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
@ -369,5 +378,5 @@ Parameter | Description
|
||||||
:--- | :---
|
:--- | :---
|
||||||
`coerce` | A Boolean value that specifies whether to automatically close unclosed linear rings. Default is `false`.
|
`coerce` | A Boolean value that specifies whether to automatically close unclosed linear rings. Default is `false`.
|
||||||
`ignore_malformed` | A Boolean value that specifies to ignore malformed GeoJSON or WKT geoshapes and not to throw an exception. Default is `false` (throw an exception when geoshapes are malformed).
|
`ignore_malformed` | A Boolean value that specifies to ignore malformed GeoJSON or WKT geoshapes and not to throw an exception. Default is `false` (throw an exception when geoshapes are malformed).
|
||||||
`ignore_z_values` | Specific to points with three coordinates. If `ignore_z_values` is `true`, the third coordinate is not indexed but is still stored in the _source field. If `ignore_z_values` is `false`, an exception is thrown. Default is `true`.
|
`ignore_z_value` | Specific to points with three coordinates. If `ignore_z_value` is `true`, the third coordinate is not indexed but is still stored in the _source field. If `ignore_z_value` is `false`, an exception is thrown. Default is `true`.
|
||||||
`orientation` | Specifies the traversal order of the vertices in the geoshape's list of coordinates. `orientation` takes the following values: <br> 1. RIGHT: counterclockwise. Specify RIGHT orientation by using one of the following strings (uppercase or lowercase): `right`, `counterclockwise`, `ccw`. <br> 2. LEFT: clockwise. Specify LEFT orientation by using one of the following strings (uppercase or lowercase): `left`, `clockwise`, `cw`. This value can be overridden by individual documents.<br> Default is `RIGHT`.
|
`orientation` | Specifies the traversal order of the vertices in the geoshape's list of coordinates. `orientation` takes the following values: <br> 1. RIGHT: counterclockwise. Specify RIGHT orientation by using one of the following strings (uppercase or lowercase): `right`, `counterclockwise`, `ccw`. <br> 2. LEFT: clockwise. Specify LEFT orientation by using one of the following strings (uppercase or lowercase): `left`, `clockwise`, `cw`. This value can be overridden by individual documents.<br> Default is `RIGHT`.
|
||||||
|
|
Loading…
Reference in New Issue