How to search with range id IN (1,2,3) ?

10 views
Skip to first unread message

Gudata

unread,
Jan 31, 2010, 3:23:13 PM1/31/10
to Searchlogic
Hi,
I saw that you have some conditions in the code

GROUP_CONDITIONS =

{
:in => [],
:not_in => []
}

but I don't get how to use them.

I try User.id_in([1,2]) but it doesn't work. What I am missing?

Gudata

unread,
Feb 27, 2010, 2:44:50 PM2/27/10
to Searchlogic
Ok, here is the answer

User.id_eq_any([1, 2])

You can use "any" or "all".

Reply all
Reply to author
Forward
0 new messages