Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.4
    • Component/s: jackrabbit-core, query
    • Labels:
      None

      Description

      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.

        Activity

        Hide
        Marcel Reutegger added a comment -

        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

        Show
        Marcel Reutegger added a comment - 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
        Hide
        Marcel Reutegger added a comment -

        Setting to fixed.

        Show
        Marcel Reutegger added a comment - Setting to fixed.

          People

          • Assignee:
            Unassigned
            Reporter:
            Marcel Reutegger
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development