[
https://issues.apache.org/jira/browse/JCR-247?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12465471
]
Jaka Jaksic commented on JCR-247:
---------------------------------
This is a killer feature alright, but it does not yet work as expected. Namely,
full-text search within linked files doesn't seem to work.
Take the following query for example:
"//element(*, nt:linkedFile)[jcr:deref(@jcr:content, '*')/jcr:contains(.,
'search string')]"
(should return all linked file nodes whose referenced resources contain the
given search string)
Running this query, an ArrayStoreException occurs in PathQueryNode, line 77:
return (LocationStepQueryNode[]) operands.toArray(new
LocationStepQueryNode[operands.size()]);
The problem is that the query operands are copied into an array of
LocationStepQueryNode, while the last operand is not of that type - it is of
type TextsearchQueryNode, which only extends QueryNode.
I have no idea how complex it would be to fix this. If it would require a lot
of work, then maybe for now just add some operand type checking and throw a
descriptive exception if an incompatible query node is found.
> Child axis support for XPath predicates
> ---------------------------------------
>
> Key: JCR-247
> URL: https://issues.apache.org/jira/browse/JCR-247
> Project: Jackrabbit
> Issue Type: Improvement
> Components: xpath
> Reporter: Jukka Zitting
> Fix For: 1.2
>
>
> It seems that Jackrabbit currently only supports the attribute axis in XPath
> predicates. Support for the child axis would be a nice addition.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira