[ 
https://issues.apache.org/jira/browse/OAK-1336?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Thomas Mueller resolved OAK-1336.
---------------------------------

    Resolution: Fixed

Revision 1562083
XPath queries of this type are now converted to "union"

> Query: use "union" for complex XPath queries that use "or"
> ----------------------------------------------------------
>
>                 Key: OAK-1336
>                 URL: https://issues.apache.org/jira/browse/OAK-1336
>             Project: Jackrabbit Oak
>          Issue Type: Improvement
>            Reporter: Thomas Mueller
>            Assignee: Thomas Mueller
>             Fix For: 0.16
>
>
> The following XPath query is converted to a union, however there is still an 
> "or" in the converted query, which means the query still can't use all 
> indexes and has to traverse the whole repository:
> {code}
> //*[(((@jcr:primaryType = 'nt:unstructured') 
> and (@resources = '/data' or @resolved = '/data'))
> or (@content = '/data' and (@jcr:primaryType = 'nt:folder'))) ] 
> {code}



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

Reply via email to