EZP-22830: add test  case
Merge pull request #848 from ezsystems/fix-EZP-22830-solr-logicalnot

Fix EZP-22830: having query with LogicalNot generating subquery returns empty result set