Open shohamazon opened 5 months ago
It's a breaking change to remove them, since someone might be calling them and seeing the intended result. Is there any concern with just leaving them as is and just documenting that they don't have any effect?
It's fine to update the documentation to clarify that ASC
and DESC
don't affect GEOSEARCHSTORE
. There's no real concern with keeping them as they are.
Thanks for your response, and have a great day! 🙂
The
GEOSEARCHSTORE
command in Valley currently supports theASC
andDESC
options, which are used to specify the sorting order of the search results. However, in the context ofGEOSEARCHSTORE
, where the results are stored in a sorted set, these options become redundant.When using
GEOSEARCHSTORE
, the results are stored in a sorted set where the order is determined by the score. Therefore, explicitly specifying the sorting order withASC
orDESC
options is unnecessary and has no effect on the final stored results.Example: