title: CQ5 QueryBuilder Search Not Working as Expected (when property NOT present)
body: <p>I'm trying to produce a query that will return all pages under a path where a property is NOT present.</p>
  
  <p>Effectively I want the query builder query that will produce the following xpath: <code>/jcr:root/content/site/my/path//element(*, cq:Page)[not(jcr:content/task/@finished)]</code></p>
  
  <p>For CQ 5.3 the 'exists' property doesn't seem to be present (according to the docs: <a href="http://docs.adobe.com/docs/en/cq/5-3/javadoc/com/day/cq/search/eval/JcrPropertyPredicateEvaluator.html" rel="nofollow">http://docs.adobe.com/docs/en/cq/5-3/javadoc/com/day/cq/search/eval/JcrPropertyPredicateEvaluator.html</a>), however it looks like I can use 'not', so I've tried the following two examples but neither work as I expect in query debugger:</p>
  
  <h1>1</h1>
  
  <pre><code>path=/content/site/my/path
  type=cq:Page
  property=jcr:content/task/finished
  property.operation=not
  </code></pre>
  
  <h1>2</h1>
  
  <pre><code>path=/content/site/my/path
  type=cq:Page
  property=jcr:content/task/finished
  property.operation=not
  property.value=true
  </code></pre>
  
  <p>I've also seen pages that suggest these should work, and I can't seem to see any hotfixes that would cover fixing this (assuming it isn't actually working correctly).</p>
  
  <p>Can anyone offer a solution or point out where I'm going wrong?</p>
  
  <p>Using CQ 5.3, upgraded to crx 2.2.</p>
  
  <p>Cheers</p>
  
  <p>Chris</p>