Combining Searchlogic named scopes with OR
Posted
by jaycode
on Stack Overflow
See other posts from Stack Overflow
or by jaycode
Published on 2010-06-04T08:05:08Z
Indexed on
2010/06/09
3:22 UTC
Read the original article
Hit count: 349
ruby-on-rails
|searchlogic
Is something like this possible?
Product.price_greater_than(10000).or_tags_name_equals('luxury')
The wiki doesn't help much on this...
I saw in the wiki:
User.id_or_age_lt_or_username_or_first_name_begins_with(10)
=> "id < 10 OR age < 10 OR username LIKE 'ben%' OR first_name like'ben%'"
I really don't get that, how in the world did "ben" comes up??? could anyone help please?
© Stack Overflow or respective owner