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/05/13 15:33:16 UTC

[jira] [Commented] (OAK-318) Excerpt support

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

Thomas Mueller commented on OAK-318:
------------------------------------

The query

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

could be convertd to:

{code}
select 
  b.[jcr:path] as [jcr:path], 
  b.[jcr:score] as [jcr:score], 
  b.[rep:excerpt] as [rep:excerpt] 
from [nt:base] as a 
inner join [nt:base] as b on ischildnode(b, a) 
where contains(a.*, 'jackrabbit') 
and ischildnode(a, '/testroot') 
/* xpath: /jcr:root/testroot/*[jcr:contains(., 'jackrabbit')]/rep:excerpt(.) */
{code}

and then the pseudo-property "rep:excerpt" could be passed as a "not null" restriction to the filter (FilterImpl) so that the index knows that the excerpt is needed.
                
> Excerpt support
> ---------------
>
>                 Key: OAK-318
>                 URL: https://issues.apache.org/jira/browse/OAK-318
>             Project: Jackrabbit Oak
>          Issue Type: Sub-task
>          Components: jcr
>            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