Folks any ideas? Why am I getting a fixnum for city, instead of a string?
On May 31, 9:34 pm, badnaam <[email protected]> wrote: > Specifically ..how can I get a listing like.. > > category_1 > record1 > record2 > record3 > category_2 > record1 > > .. > There does not seem to be a way to get the categories..like > results.keys..the way I have done with normal rails group_by queries. > > On May 31, 9:23 pm, badnaam <[email protected]> wrote: > > > I am not getting any luck with the docs, here is my search.. > > > m1 = ThinkingSphinx.search(:geo => ll, :with => {"@geodist" => 0.00.. > > (40 * 1609.344)}, :latitude_attr => :lat, :longitude_attr > > => :lng, :sort_by =>:created_at, :classes => [Merchant], :group_by => > > "city", :group_function => :attr, :group_clause => "@count desc") > > > I would assume when I do the following I would see a list of > > cities..but I see a bunch of integers. Is there an example of how to > > loop through the results? > > > m1.each_with_groupby do |rec, group| > > puts group > > end > > -- 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.
