Fix -owner:self query

Lucene does not support negation without using the all docs query to
subtract the negated results from.

Try to simplify the query tree when negated operators appear by using
MUST_NOT in a parent's BooleanQuery instead of creating a child that
scans all documents.

Change-Id: Idd37202fcd908534e22169c0c87405d363e0b71f
2 files changed