0

I'm trying to query with the lat/long bounds but am having troubles.

fq=geo-coordinates:"[(40.87967,-74.0183) TO (40.7,-73.9072)]" does not work, I have also tried

fq=geo-coordinates:"[(40.87967 TO 40.7,-74.0183 TO -73.9072)]"

I am aware there is a coordinate plus a radius query but I need this query to be strictly between two coordinates.

This question is similar: How to search records between two coordinates using solr spatial search

But the answer does not take into consideration a single location_rpt schema field.

4

1 回答 1

0

你的第一次尝试几乎是正确的。那些括号不应该存在,双引号也不应该存在:

fq=geo-coordinates:[40.87967,-74.0183 TO 40.7,-73.9072]

您所做的查询看起来像一个字段/术语查询,这不是 - 它是一个范围查询。

于 2013-10-18T18:42:52.303 回答