> Is there anyway to support a ! operator? I've been working on the
> sphinx adapter, and say we want to do a query like:
>
> 'dog OR cat OR "white tigers" NOT (lions OR bears) AND
> title:animals'
>
> This is how I'd expect to do it in ruby:
>
> Tweet.select{ |t| ("dog" || "cat" || "white tiger") && ( ("lions"
> || "bears") && t.title == "animals") }
There's no bang (!) in that, which I assume is a typo. I would not
map the above Ruby to mean "not lions or bears" if I were translating
it to English. Or am I overlooking something?
--
Chris Wanstrath
http://errfree.com // http://errtheblog.com
http://github.com // http://famspam.com