Skip to content
This repository has been archived by the owner on Mar 21, 2024. It is now read-only.

Commit

Permalink
add descending order capability for _geoPoint built-in sort (#77)
Browse files Browse the repository at this point in the history
  • Loading branch information
gmourier committed Oct 12, 2021
1 parent e76cb36 commit 31e38f9
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions text/0059-geo-search.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ The purpose of this specification is to add a first iteration of the **geosearch

- Documents MUST have a `_geo` reserved object to be geosearchable.
- Filter documents by a given geo radius using the built-in filter `_geoRadius({lat}, {lng}, {distance_in_meters})`. It is possible to cumulate several geosearch filters within the `filter` field.
- Sort documents in ascending order around a geo point. e.g. `_geoPoint({lat}, {lng}):asc`. Descending order will not be supported for this first iteration.
- Sort documents in ascending/descending order around a geo point. e.g. `_geoPoint({lat}, {lng}):asc`.
- It is possible to filter and/or sort by geographical criteria of the user's choice.
- `_geo` must be set as a filterable attribute to use geo filtering capabilities.
- `_geo` must be set as a sortable attribute to use geo sort capabilities.
Expand Down Expand Up @@ -270,7 +270,6 @@ This error is raised asynchronously when the user tries to specify an invalid ra
## 3. Future Possibilities

- Add built-in filter to filter documents within `polygon` and `bounding-box`.
- Handling `:desc` order around a geoPoint
- Handling array of geo points in the document object.
- Handling multiple geo formats for the `_geo` field. e.g. "{lat},{lng}", a geohash etc.
- Handling distance in other formats (like the imperial format). **It's easy to implement on the user side though.**
Expand Down

0 comments on commit 31e38f9

Please sign in to comment.