How to query a RANGE operator with decimal values?

May 12, 2012 at 7:02 PM

Hi,

I am trying to do a simple geo search using longitude and latitude managed properties of type decimal.

fql:and(latitude:range(7,10),longitude:range(49,52))  

=> works fine, but

fql:and(latitude:range(7,10),longitude:range(49,52.2))

=> only returns Your query is malformed. Please rephrase your query.

According to this blogpost it should work in FQL in general

http://www.linkedin.com/groups/GeoSorting-GeoSearching-1812889.S.102854541

AND("steak restaurants", latitude:range(33.784141,33.757437), longitude:range(-84.392273,-84.394615))

Is the syntax from for FQL or is it due to this searchbox?

May 12, 2012 at 7:07 PM

 

I got it.

If either min or max is decimal.. then the other value needs to be decimal too ;-)

fql:AND( latitude:range(6.1,10.1), longitude:range(48.1,52.1)) => works

fql:AND( latitude:range(6,10.1), longitude:range(48,52.1)) => does not ;-)