[
https://issues.apache.org/jira/browse/OAK-1215?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13832395#comment-13832395
]
Thomas Mueller commented on OAK-1215:
-------------------------------------
> I've timed traversals
Do you mean traversing all nodes in /etc/commerce/products?
Using SQL-2 would work, even thought the query is quite tricky (using
jcr:primaryType is null).
Actually, I don't quite understand what the query tries to search for.
Shouldn't it be simply:
{code}
/jcr:root/etc/commerce/products//*[@size='M']
{code}
otherwise, let's assume there are the following node:
{code}
/jcr:root/etc/commerce/products/a/b/c/@size='M'
{code}
then "../a/b" is returned, as well as "../a/b/c". Right? Is this really what
you want? What are you trying to do?
> Relative property paths don't work in XPath search expressions
> --------------------------------------------------------------
>
> Key: OAK-1215
> URL: https://issues.apache.org/jira/browse/OAK-1215
> Project: Jackrabbit Oak
> Issue Type: Bug
> Reporter: Jeff Young
> Priority: Critical
> Attachments: relative-predicate-paths.tiff
>
>
> A search XPath of the form:
> {code}
> /jcr:root/etc/commerce/products//*[@size='M' or */@size='M']
> {code}
> returns:
> {code}
> Invalid path: *
> {code}
> (This works fine in Jackrabbit.)
--
This message was sent by Atlassian JIRA
(v6.1#6144)