[
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 3:00 PM:
-------------------------------------------------------------
> anyway trying to parse things should be done in the parser and not at that
> stage
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}
rows.nextRow().getValue("rep:excerpt(text)").getString();
{code}
At least the query should also contain rep:excerpt(text).
> 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