lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Aaron Chmelik <>
Subject Multiple location filters per search
Date Tue, 08 Jun 2010 19:09:08 GMT
Currently using solr 1.4,

I am looking for a way to conduct a solr search with a single query
and multiple locations. The goal is not to find the intersect of these
locations (so I can't just apply multiple filter queries) but to
return documents in rage 1 OR range 2.

I am currently working with the following:

{!frange l=0 u=1 unit=mi}dist(2,32.6126, -86.3950, latitude, longitude)

Which works just fine as a single location search.

However, when trying to do a filter query like this:

{!frange l=0 u=1 unit=mi}dist(2,32.6126, -86.3950, latitude,
longitude) OR {!frange l=0 u=1 unit=mi}dist(2,44.1457, -73.8152,
latitude, longitude)


{!frange l=0 u=1 unit=mi}(dist(2,32.6126, -86.3950, latitude,
longitude) OR dist(2,44.1457, -73.8152, latitude, longitude))

I get an error. Hoping someone has an idea of how to work with
multiple locations in a single search.

Aaron Chmelik
Web Designer & Programmer
phone: 651.757.5979

View raw message