jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Marcel Reutegger (JIRA)" <j...@apache.org>
Subject [jira] Commented: (JCR-860) Add relative path parameter to rep:excerpt()
Date Sun, 22 Apr 2007 11:54:15 GMT

    [ 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.


Mime
View raw message