I want to be able to order my search results by quantity and location. Each user in the database has lat / lot, and now I index:
location :coordinates do Sunspot::Util::Coordinates.new latlon[0], latlon[1] end
The model I searched with is also indexed in the same way. Essentially, I'm trying to get results to be ordered by invoice, and then by location. Therefore, if I am looking for Walmart, I would like all Walmart to be ordered by geographic proximity to my location.
I remember that I read something about the new geo-sorting of solr, but I'm not sure if this is due to alpha and / or if sunspot implemented the wrapper.
What would you recommend?
brupm source share