I have a form to a search engine. I want to search for the searchterm in all fields of a specific model.
I'm using the searchlogic plugin. It gives me a lot of new finders but i cannot do a OR between two fields.
for example:
How can i do a "SELECT * from my_table WHERE field1 LIKE '%xpto%' OR field2 LIKE '%xpto%' ?
Specially in the form parameter that will be passed to my controller, if you know searchlogic you know what i'm speaking about, i'm trying to pass something like: field1_or_field2_like("xpto") but it dont works. Any idea?