Boolean Queries

The QueryStringBuilder supports the full Lucene query syntax (as Clinton
pointed out earlier):
http://lucene.apache.org/java/3_4_0/queryparsersyntax.html
It therefore does support the NOT operator and also grouping logical
expressions via parenthesis. The only difference to the notation you are
looking for is how fields are accessed. In Lucene notation you would refer
to fields via something like 'field1:value1'.