OR conditions with Search class
Could be possible to add OR support even to Search class. I would like do this Book.search(:title_or_description_like => 'ruby') or in chain s = Book.search s.title_or_description_like('ruby')
Now it produce only s.conditions => {:title_or_description_like => false}
Thanks for wonderful work.
is this going to be worked on, I just ran into this. A large part of using search logic is the search method, but you currently cant use or statements like: User.search(:gpa_lte_or_null => 4) It just ignores all the conditions.
noticed the same issue. a bit annoying.
would be very helpful if the search object supports OR chaining as well.
I have an issues somewhat like this, Trying to search an association if it exists.
Place.{:title, :brand_id} Brand.{:title}
Place.title_or_brand_title_like_any(q)
only searches places that are associated with a brand, fails to return places without a association.