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

Thomas Mueller resolved OAK-1432.
---------------------------------

    Resolution: Fixed

Revision 1570093

> Query: use "union" for complex XPath queries that use multiple "or"
> -------------------------------------------------------------------
>
>                 Key: OAK-1432
>                 URL: https://issues.apache.org/jira/browse/OAK-1432
>             Project: Jackrabbit Oak
>          Issue Type: Bug
>            Reporter: Thomas Mueller
>            Assignee: Thomas Mueller
>             Fix For: 0.18
>
>
> 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:
> {noformat}
> /jcr:root/a/b//element(*, nt:unstructured)[(
> (@sling:resourceType = 'x' 
> or @sling:resourceType = 'dam/collection') 
> or @sling:resourceSuperType = 'dam/collection')] 
> {noformat}



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

Reply via email to