Just tested this. You were getting loads of results because you used non-uppercase version of the operators. See the file I've attached for tests with results, compiled against the current master HEAD at git.
Let me know if you need any further help with this. This will auto-close in 14 days.
In the very same document you provided, it says "Note: Boolean operators must be ALL CAPS". I found this in several other places as well. It's by design then.
I will have a deeper look at the BooleanQuery issue you raised later today.
Thank you, fixed in the queryParser branch. I will merge this to master
soon.
The problem was scope inconsistency between the original Java code and our CPP port. Fixd now.
Thanks, you are right of course. Your patch does not completely close the issue (see for example the STAR case which follows). A certain logic rewrite should be taken place there, I hope to commit this soon. In the meantime your patch does provide a certain fix.