Boolean Operators #108

ajb opened this Issue Apr 9, 2013 · 1 comment

2 participants

ajb commented Apr 9, 2013

Excuse my ignorance -- I admittedly haven't dug into the guts of this plugin, and I'm not well-versed in Postgres's search capabilities either.

I'm wondering how I should try to implement boolean search operators in my searches? Something like cats OR dogs or (cats OR dogs) AND bananas. Is this something I should just parse out myself? Or does Postgres have this functionality built in?

Thanks in advance!


For the 'or' you can pass your search in as an array.

where(animal: ['cat', 'dog'])

@ajb ajb closed this Jun 3, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment