OAK-824 Query engine: automatic expansion of "x=1 or x=2" to "(x is not null) and (x=1 or x=2)"

git-svn-id: https://svn.apache.org/repos/asf/jackrabbit/oak/trunk@1483339 13f79535-47bb-0310-9956-ffa450edef68