Details
-
Improvement
-
Status: Open
-
Major
-
Resolution: Unresolved
-
None
-
None
-
None
Description
The cost estimation for a query that uses a Lucene index calculates the cost incorrectly if there is a "not(<property>)" condition. Examples:
/jcr:root//*[(not(@x)) and (not(@y))
The Lucene query is then:
+:nullProps:x +:nullProps:y
But the cost estimation seems to take into account the number of documents for the fields "x" and "y", instead of the field ":nullProps"