commit | 268cee31aa3ddc6cbb8f6f46daed5451c1c95536 | [log] [tgz] |
---|---|---|
author | Shawn Pearce <sop@google.com> | Fri Jun 28 10:54:24 2013 -0700 |
committer | Shawn Pearce <sop@google.com> | Fri Jun 28 18:15:47 2013 +0000 |
tree | 11e7a39e1df75d001f6752ea2f48244292a1abca | |
parent | 9c4720405b088785bb181df3d7bca8410b1501e3 [diff] |
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