[ 
https://issues.apache.org/jira/browse/OAK-1992?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14080615#comment-14080615
 ] 

Thomas Mueller commented on OAK-1992:
-------------------------------------

Property (as well as ordered) indexes currently support the attributes 
"propertyNames" and "declaringNodeTypes". I believe relative property names are 
not yet supported. But if we would support them, then the following index could 
be used for the query above:

* propertyNames: jcr:content/jcr:lastModified
* declaringNodeTypes: Page
* type: property

The same for the ordered index.

> Improve queries on relative properties with different node type
> ---------------------------------------------------------------
>
>                 Key: OAK-1992
>                 URL: https://issues.apache.org/jira/browse/OAK-1992
>             Project: Jackrabbit Oak
>          Issue Type: Improvement
>          Components: query
>            Reporter: Thomas Mueller
>
> Let's assume there is a node "/data/testNode" (nodetype "Page") and a child 
> node "/data/testNode/jcr:content" (nodetype "PageContent"). Also, there is an 
> index "jcr:lastModified" on node type "PageContent". Now the following query 
> can not use that index, because neither the index implementation nor the 
> query engine "know" that the index can be used:
> {noformat}
> /jcr:root/content/data//element(*, Page)
>     [(jcr:content/@jcr:lastModified = xs:dateTime('2013-05-09T09:44:01.403Z')]
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to