Hi Eric
The reason geo searches won't work when searching on Business is because you
have an array of floats (which Sphinx can't handle) for both latitude and
longitude. Sphinx requires single float values for both of those attributes.
So, you probably want to search on Addresses instead, and
Pat,
Everything you suggested was extremely useful. For the edification of
those who come across this later, I a bit of the following. I added 2
Sphinx scopes (and I put them both in the Address model and the Business
model):
sphinx_scope(:website_only) {
{:with = {:website_only =
I am struggling with trying to geo search an asssociated model. My
relevant code is here: http://www.pastie.org/790850
The context is that I have a business model and an address model. I
want to be able to search for items in the business model that match
certain criteria (like the name or