Hi Matthew

I've not had to implement this before in an app, so this is a little bit of 
guesswork...

Essentially, you're going to run two searches, which are the facet search, and 
the results search. It'll look something like this:
  facets  = Model.facets :geo => [lat, lng], :with => {'@geodist' => 0..10000}
  results = facets.for

The #for method normally takes arguments of a specific facet, but works fine 
without args to return the first page of results for the same args as the facet 
search.

If you get stuck, let me know.

Cheers

-- 
Pat

On 30/03/2011, at 2:59 AM, yellowpinky wrote:

> All,
> 
> I have read through many of the posts on the group and tried a number
> of implementations but have not found an approach I'm comfortable
> with. The problem is how best to code up a two step search where the
> user first performs a distance (Lat/Lng) based search and then drills
> down through the results using facets?
> 
> Many thanks
> 
> -- 
> 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.

Reply via email to