lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Aaron Chmelik <aaron.chme...@gmail.com>
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:

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

Which works just fine as a single location search.

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

{code}
{!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)
{/code}

or

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

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
email: aaron.chmelik@gmail.com
website: http://webdesign.aaronchmelik.com
phone: 651.757.5979

Mime
View raw message