fabrizio giustina created JCR-3375: -------------------------------------- Summary: Excerpts not available with xpath queries filtered by path in JR 2.4 Key: JCR-3375 URL: https://issues.apache.org/jira/browse/JCR-3375 Project: Jackrabbit Content Repository Issue Type: Bug Reporter: fabrizio giustina Priority: Minor
Moving from jackrabbit 2.2 to 2.4 some of the queries were I was retrieving an excerpt stopped working (same list of results but no excerpts returned). After some debugging I found out that with jackrabbit 2.4 excerpts are only returned when the xpath queries are not filtered by path, e.g. using: //*[( (@jcr:primaryType='my:nodetype') and ( jcr:contains(., 'keyword') ) )] order by @jcr:score descending I can successfully extract excerpts, while using: //something//*[( (@jcr:primaryType='my:nodetype') and ( jcr:contains(., 'keyword') ) )] order by @jcr:score descending or /jcr:root//*[( (@jcr:primaryType='my:nodetype') and ( jcr:contains(., 'keyword') ) )] order by @jcr:score descending (or anything different from //*) ... doesn't give any excerpt in jackrabbit 2.4, while it works with 2.2 (same identical configuration, tested by switching several time between the two versions). Is this intended? I cound't find any note about similar limits or related changes in JR 2.4. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira