riteshrao/ravenjs — pull request #1 by xzachtli (2012-10-15 15:56:01+00:00)
Title: Enable complex querying ability

* Added public query( luceneString ) function to QueryRequest object to allow for specifying lucene query directly
* Added OR fluent query option
* New NestedQuery object is now used in QueryRequest to build fluent queries

Example:

request.where('foo').is('bar').or(function(query) { query.where('baz').is('bar').and('bar').is('foo') })

Will form the lucene syntax:

(foo:bar OR (baz:bar AND bar:foo))