I am looking to utilize Solr for both text and geospatial searching in a Rails 3.1 app. I see that websolr supports geo-spatial indexing & searches but the two gems for it (sunspot & rsolr) do not seem to (currently) implement it. Sunspot appears to be in the process of adding the functionality but claims that "[geospatial is] experimental and unreleased. The DSL may change."
Are there other implementations of geospatial searching with sunspot + websolr? I've done a bit of googing and come across some but they seem hackish and I'd rather not use what I've found if there is already a core feature being baked in or a more supported approach.
Sunspot does support geo-spatial search, with some limitations.
Indexing:
Search:
But it's really not precise... It's using geo hashes if I'm not mistaken. So it's possible that 2 points are close from each other but are not found.
Also, you can't nest
near
in facets.I would follow the advice of ADAM and go for elastic search. That's what I did. You get a lot more control.
Tire also supports geospatial search, but there is no specific methods in the DSL, because it's not needed. They plan to add them later I think.
Indexing:
Search: