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

        Marcel Reutegger created issue -
        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
        Marcel Reutegger made changes -
        Field Original Value New Value
        Fix Version/s 1.4 [ 12312447 ]
        Hide
        Marcel Reutegger added a comment -

        Setting to fixed.

        Show
        Marcel Reutegger added a comment - Setting to fixed.
        Marcel Reutegger made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Jukka Zitting made changes -
        Component/s jackrabbit-core [ 12310114 ]
        Jukka Zitting made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Jukka Zitting made changes -
        Workflow jira [ 12402386 ] no-reopen-closed, patch-avail [ 12469213 ]
        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Open Open Resolved Resolved
        204d 22h 17m 1 Marcel Reutegger 13/Nov/07 10:05
        Resolved Resolved Closed Closed
        63d 13h 21m 1 Jukka Zitting 15/Jan/08 23:26

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development