Can the Geo Distance filter take distance param of less than 1mi?


(Bruno Miranda) #1

In my case I am using 1mi (mile), I tried using 0.5mi but it doesn't return the correct results. Is the only solution to this to drop to a smaller distance unit?


(Michael McCandless) #2

Hmm, I peeked at the sources in ES master for GeoDistanceRangeQueryParser, and in ES 1.x for GeoDistanceFilterParser, and from what I can tell (looking at parseDistance in org/elasticsearch/common/unit/DistanceUnit$Distance), we parse the 0.5 to a double, so that query should have worked.

Mike McCandless


(system) #3