sunspot/sunspot — Issue #122: facets on location
Author: niuage
Created: 2011-11-08 00:40:34+00:00
State: open

http://stackoverflow.com/questions/8032643/sunspot-facets-on-location

If anyone can help me with that, it'd be great!

Basically, I want to do something like:

with(:coordinates).near(coord[0], coord[1], :precision => 3)
facet :distance do
row 2 do
with(:coordinates).near(coord[0], coord[1], :precision => 2)
end
row 3 do
with(:coordinates).near(coord[0], coord[1], :precision => 3)
end
end

But I get: `undefined method near for #`

Any idea?

Thanks