mirror of
https://gitlab.com/openstapps/openstapps.git
synced 2026-01-09 11:12:52 +00:00
feat: make Point type sortable in Elasticsearch
This commit is contained in:
@@ -30,9 +30,15 @@ export const premaps: ElasticsearchPremap = {
|
|||||||
type: ElasticsearchDataType.geo_shape,
|
type: ElasticsearchDataType.geo_shape,
|
||||||
},
|
},
|
||||||
Point: {
|
Point: {
|
||||||
precision: '1m',
|
properties: {
|
||||||
tree: 'quadtree',
|
type: {
|
||||||
type: ElasticsearchDataType.geo_shape,
|
type: ElasticsearchDataType.keyword,
|
||||||
|
},
|
||||||
|
coordinates: {
|
||||||
|
type: ElasticsearchDataType.geo_point,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
dynamic: 'strict',
|
||||||
},
|
},
|
||||||
Polygon: {
|
Polygon: {
|
||||||
precision: '1m',
|
precision: '1m',
|
||||||
|
|||||||
Reference in New Issue
Block a user