lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Yonik Seeley" <yo...@apache.org>
Subject Re: Range search problem on float values
Date Fri, 16 Feb 2007 04:20:00 GMT
On 2/15/07, Peter McPeterson <give2me_78@hotmail.com> wrote:
> Hi all, I'm having a problem doing a range search on float values. The field
> types for longitude and latitude were text, then I changed to float to give
> it a try but I'm still having problems.
>
> The correct search string would be:
> latitude:[32.71852 TO 32.792765] AND longitude:[-117.159316 TO -116.966504]
> which doesn't work

Did you re-index after you changed the field type?
If you compare the field values as text, -116 comes before -117

-Yonik

Mime
View raw message