diff --git a/src/storage/elasticsearch/query.ts b/src/storage/elasticsearch/query.ts index cbed5ae4..64927aed 100644 --- a/src/storage/elasticsearch/query.ts +++ b/src/storage/elasticsearch/query.ts @@ -212,8 +212,8 @@ export function buildFilter(filter: SCSearchFilter): // @ts-ignore unfortunately, typescript is stupid and won't allow me to map this to an actual type. ignore_unmapped: true, [`${filter.arguments.field}.point.coordinates`]: { - bottom_right: filter.arguments.shape.coordinates[0], - top_left: filter.arguments.shape.coordinates[1], + top_left: filter.arguments.shape.coordinates[0], + bottom_right: filter.arguments.shape.coordinates[1], }, }, },