Hi Sanjay

Your patch is a great idea - I'll try to get it pushed into the  
official version at some point soon.

-- 
Pat

On 26/04/2009, at 8:51 AM, Sanjay wrote:

>
> I had the same question on the number of sphinx queries and the
> related db queries made on each facet request.  When I use facets, I
> normally just want the facet values and not the model objects.  For
> example, if I call Business.facets("mcdonalds"), and I have facets for
> city and state, I really just want the city and state values, and
> don't care about the business objects.  If I want the business
> objects, I use Business.search("mcdonalds").
>
> Additionally, when I do the facet search, I may not want all of the
> facets defined on the model.  In the above example, I may only want
> the city or state results, but not both.  I have modified the facets
> method to support these changes: http://gist.github.com/102075.
>
> I am wondering if this sounds like a reasonable way to handle facets
> while limiting the number of sphinx and database requests?
>
> -- Sanjay
>
>
> >


--~--~---------~--~----~------------~-------~--~----~
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