Chetan Mehrotra created OAK-5897: ------------------------------------ Summary: Optimize like constraint support in Property Indexes Key: OAK-5897 URL: https://issues.apache.org/jira/browse/OAK-5897 Project: Jackrabbit Oak Issue Type: Improvement Components: query Reporter: Chetan Mehrotra Assignee: Thomas Mueller Fix For: 1.8
Consider a query {noformat} /jcr:root/content//element(*, nt:unstructured)[jcr:like(@resource, '/content/foo/bar%')] {noformat} This currently gets translated into a range property restriction {noformat} property=[resource=[[/content/foo/bar.., ../content/foo/bas]]] {noformat} For such a query property index currently returns all nodes having "resource" property i.e. all index data. This can be optimized to return only those nodes where indexed value qualifies the range property restriction -- This message was sent by Atlassian JIRA (v6.3.15#6346)