Hi Martin
Unfortunately, Sphinx can only reference a single geographical point
in searches, so your manual approach is probably best.
--
Pat
On 02/12/2009, at 1:55 AM, Martin Sarsale wrote:
> Guys, Pat:
>
> Is it possible to search for document near (@geodist) a number of
> places?
> ie, instead of
> Place.search "pancakes", :geo => [...@lat, @lng], :with => {"@geodist"
> => 0..10_000}
>
> we would like to do something like:
>
> Place.search "pancakes", :geo => [...@lat1, @lng1], [...@lat2, @lng2],
> [...@lat3, @lng3], [...@lat4, @lng4]] , :with => {"@geodist" => 0..10_000}
>
> Any hints?
> If it's not possible we're planning to do it 'manually' (N sphinx
> only_ids queries) and then paginate thru the results...
>
> --
> Martin Sarsale
> msn: [email protected]
> jabber: [email protected]
> twitter: http://twitter.com/runixo
> linkedin: http://www.linkedin.com/in/msarsale
> sumavisos: http://www.sumavisos.com
> blog: http://runa.tumblr.com
>
> --
>
> You received this message because you are subscribed to the Google
> Groups "Thinking Sphinx" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected]
> .
> For more options, visit this group at
> http://groups.google.com/group/thinking-sphinx?hl=en
> .
>
>
--
You received this message because you are subscribed to the Google Groups
"Thinking Sphinx" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/thinking-sphinx?hl=en.