You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oak-issues@jackrabbit.apache.org by "Thomas Mueller (JIRA)" <ji...@apache.org> on 2013/12/05 13:54:35 UTC
[jira] [Commented] (OAK-1215) Relative property paths don't work in
XPath search expressions
[ https://issues.apache.org/jira/browse/OAK-1215?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13840060#comment-13840060 ]
Thomas Mueller commented on OAK-1215:
-------------------------------------
> I assume tags are indexed, though?
Yes.
> So perhaps we can tell them property searches will be slow unless they also include tags in the search?
... or some other indexed property. I guess iterating over all nodes with size='M' would be also slow? Or is size='M' not the real condition, and the real problem is to use an index on x with the condition x=c or */x=c or */*/x=c where c is s constant?
> Does the Jackrabbit 2 implementation index on the properties?
I'm afraid I don't know how Jackrabbit 2.x / Lucene works for this case, [~mreutegg], maybe you can help?
> 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)