Searchlogic cannot sort search result

Posted by jaycode on Stack Overflow See other posts from Stack Overflow or by jaycode
Published on 2010-04-11T07:09:31Z Indexed on 2010/04/11 7:13 UTC
Read the original article Hit count: 390

Imagine a code:

search = Project.search(
  :title_or_description_or_child_name_or_child_age_or_inspiration_or_decorating_style_or_favorite_item_or_others_like_any => keys,
  :galleries_id_like_any => @g,
  :styles_id_like_any => @st,
  :tags_like_any => @t
)

search.all returns the rows correctly.

But search.descend_by_views returns nil.

Is this gem buggy? What else should I use then?

© Stack Overflow or respective owner

Related posts about ruby-on-rails

Related posts about searchlogic