Describe the bug
I'm using RediSearch to search through documents that contain coordinates. When I run a radius search, I am occasionally getting results that are located a short distance outside of the search distance.
To reproduce
Create a document with an indexed set of coordinates. Add entries with these coordinates: (37.35141,-79.18003) (37.35141,-79.18003) (37.35722,-79.17139) (37.43583,-79.16883)
Running the following query should return the first 3 entries, but not the fourth. Those coordinates are approximately 5-6 miles from the center of the search.
ft.search indexName "@coords:[37.34060346114586 -79.17873661760095 2 mi]"
Expected behavior
Running the query should show the first 3 entries, as they are the only ones inside the search radius.
Additional information
I've got this query hooked up to a map, so that it refires as I move the center and adjust the zoom level to show me what's on the map based on the current screen. I've also noticed some results (in a larger data set) blinking in and out during those adjustments when they should still be visible on the map. But the 4th search result above doesn't show up on the map because it's too far away and off screen, but it's coming back in the query results.
I have not attempted to reproduce this with standard Redis GeoSpatial data and searching outside of the ft.search command.
Comment From: jawalker0
Closing this to move to the RediSearch repo.