Phlip
2008-Feb-19 18:43 UTC
acts_as_sphinx - options[:sort_mode] = [:attr_desc, ''purchase_count'']
Railsers: I can''t find acts_as_sphinx''s forum, so I must throw this question open: We have installed acts_as_sphinx and set almost everything up. The only issue is getting the :sort_mode working. Now we want to rank products by number of purchases. When we pass the above options to ask_sphinx, we just get a 105 error out of getResponse(). Sphinx says that purchase_count is a valid column in its index. But the search command line tool does not seem to accept that sort mode, so we can''t cross-check. Any ideas? Also, can we get a GetLastError() out of the Sphinx, to get 105 in English? -- Phlip http://assert2.rubyforge.org/ --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
gene tani
2008-Feb-19 20:54 UTC
Re: acts_as_sphinx - options[:sort_mode] = [:attr_desc, ''purchase_count'']
On Feb 19, 10:43 am, Phlip <phlip2...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Railsers: > > I can''t find acts_as_sphinx''s forum, so I must throw this question open: > > We have installed acts_as_sphinx and set almost everything up. The only issue is > getting the :sort_mode working. Now we want to rank products by number of purchases. > > When we pass the above options to ask_sphinx, we just get a 105 error out of > getResponse(). > > Sphinx says that purchase_count is a valid column in its index. But the search > command line tool does not seem to accept that sort mode, so we can''t cross-check. > > Any ideas? > > Also, can we get a GetLastError() out of the Sphinx, to get 105 in English? > > -- > Phlip > http://assert2.rubyforge.org/dunno answer, but here''s forum: http://www.sphinxsearch.com/forum/index.html --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Phlip
2008-Feb-20 19:08 UTC
Re: acts_as_sphinx - options[:sort_mode] = [:attr_desc, ''purchase_count'']
>> I can''t find acts_as_sphinx''s forum, so I must throw this question open: >> >> We have installed acts_as_sphinx and set almost everything up. The only issue is >> getting the :sort_mode working. Now we want to rank products by number of purchases. >> >> When we pass the above options to ask_sphinx, we just get a 105 error out of >> getResponse(). >> >> Sphinx says that purchase_count is a valid column in its index. But the search >> command line tool does not seem to accept that sort mode, so we can''t cross-check. >> >> Any ideas? >> >> Also, can we get a GetLastError() out of the Sphinx, to get 105 in English?> dunno answer, but here''s forum: > > http://www.sphinxsearch.com/forum/index.htmlThanks, but they are not likely to know why acts_as_sphinx doesn''t call GetLastError..! --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---