[ 
https://issues.apache.org/jira/browse/JCR-860?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12490711
 ] 

Marcel Reutegger commented on JCR-860:
--------------------------------------

Committed initial support in query result row. Proper support for this feature 
also requires to changes to the query parsers. With just this change the 
excerpt function in the query statement keeps unchanged (without a parameter), 
but the result row recognizes a parameter for the rep:excerpt() column.

E.g. after executing the query:

//element(*, nt:file)[jcr:contains(jcr:content, 'foo')]/rep:excerpt()

One can now get an excerpt from the jcr:content node even though the result 
nodes are of type nt:file:

Row row = ...
Value excerpt = row.getValue("rep:excerpt(jcr:content)");

Committed in revision 531167

> Add relative path parameter to rep:excerpt()
> --------------------------------------------
>
>                 Key: JCR-860
>                 URL: https://issues.apache.org/jira/browse/JCR-860
>             Project: Jackrabbit
>          Issue Type: Improvement
>          Components: query
>            Reporter: Marcel Reutegger
>            Priority: Minor
>             Fix For: 1.4
>
>
> This allows one to create an excerpt not just for the node associated with a 
> result node, but also for a node relative to the result node.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to