On Aug 3, 11:14 pm, Jay Zeschin <[email protected]> wrote:
> You might try changing your "with" range to use floats instead of integers
> (i.e. Range.new(0.0,2000.0) - that's solved this issue for me in the past.

Thanks, Jay! That was exactly the problem. All is working quite well
now.

Best,
chap

> On Mon, Aug 3, 2009 at 2:35 PM, chap <[email protected]> wrote:
>
> > Hi,
>
> > I've been working with TS to implement geographic based searches. I'd
> > like to be able to search for results within a certain radius. When I
> > use @geodist in the order clause (:order => "@geodist asc") everything
> > works well, however I've been unable to use the distance in a filter
> > clause successfully.
>
> > I'm currently using a search call like this:
> >  ls = Listing.search("",  :geo=>[0.589735584141671,
> > -1.47267414314058], :with => {"@geodist" => 0..2000}, :per_page =>
> > 100, :page => 1)
>
> > This search returns no results even though there should be many
> > matches. The same search with the :with term replaced with order
> > confirms that there are at least 100 results with a distance less than
> > 2000. I've tried with a number of variations on the parameter name as
> > well.
>
> > I'm working with the latest version of Thinking Sphinx (1.2.5). Has
> > anyone had any luck using the distance in a filter? I'd really
> > appreciate any help that you could offer with this.
>
> > Thanks,
> > chap
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to