|
|
|
|
|
by morganherlocker
4514 days ago
|
|
I could be totally wrong, but the docs you linked to do not actually conform to the geojson spec. It is geographic and it is json, but not valid geojson. The part where it says: > Format in [lon, lat], note, the order of lon/lat here in order to conform with GeoJSON. .. the data example below is not actually geojson. See the spec: http://geojson.org/geojson-spec.html |
|
Elasticsearch can map any kind of JSON, so you can, without problems, write a mapping for proper GeoJSON points. (map "type" as unanalyzed string, map "coordinate" as GeoPoint). Arrays of values are generally supported in ES.
The biggest problem is that Elasticsearch probably does not provide all kinds of queries you'd like if you are working with complex shapes. Basically, only distance and simple location queries with polygons are supported.