You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oak-issues@jackrabbit.apache.org by "Thomas Mueller (JIRA)" <ji...@apache.org> on 2013/07/23 17:00:54 UTC

[jira] [Comment Edited] (OAK-318) Excerpt support

    [ https://issues.apache.org/jira/browse/OAK-318?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13716456#comment-13716456 ] 

Thomas Mueller edited comment on OAK-318 at 7/23/13 2:59 PM:
-------------------------------------------------------------

> 

Unfortunately, the problem is that Jackrabbit seems to support this:
ExcerptTest.testQuotedPhraseNoMatch runs the query

{code}
/*[jcr:contains(., '...')]/rep:excerpt(.)
{code}

and then reads the value using

{code}
rows.nextRow().getValue("rep:excerpt(text)").getString();
{code}

At least the query should also contain rep:excerpt(text).
                
      was (Author: tmueller):
    > 

Unfortunately, the problem is that Jackrabbit seems to support this:
ExcerptTest.testQuotedPhraseNoMatch runs the query

{code}
/*[jcr:contains(., '...')]/rep:excerpt(.)
{code}

and then reads the value using

{code}
rep:excerpt(text)
{code}

At least the query should also contain rep:excerpt(text).
{code}
                  
> Excerpt support
> ---------------
>
>                 Key: OAK-318
>                 URL: https://issues.apache.org/jira/browse/OAK-318
>             Project: Jackrabbit Oak
>          Issue Type: Sub-task
>          Components: core
>            Reporter: Alex Parvulescu
>            Assignee: Thomas Mueller
>
> Test class: ExcerptTest.
> Right now I only see parse errors:
> Caused by: java.text.ParseException: Query:
> {noformat}
> testroot/*[jcr:contains(., 'jackrabbit')]/rep:excerpt((*).); expected: <end>
> {noformat}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira