jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marcel Reutegger <marcel.reuteg...@gmx.net>
Subject Re: Problem with Excerpts
Date Tue, 13 Nov 2007 10:06:43 GMT
Hi Marc,

Marc Schriftman wrote:
> First - jackrabbit rocks. I stood up an instance with an S3 back end
> in a matter of a three weeks and no real show-stoppers at all. It's
> been a real joy to work with - kudos to the developers!

thank you that's nice to hear.

> Second - I'm having problems getting search.jsp to return excerpts
> after a successful search. The page crashes with the following trace:
> 
> org.apache.jackrabbit.name.IllegalNameException:
> 'rep:excerpt(jcr:content)' is not a valid name
> 	at org.apache.jackrabbit.name.NameFormat.doParse(NameFormat.java:309)
> 	at org.apache.jackrabbit.name.NameFormat.parseIgnoreCache(NameFormat.java:252)
> 	at org.apache.jackrabbit.name.NameFormat.parse(NameFormat.java:75)
> 	at org.apache.jackrabbit.core.query.lucene.RowIteratorImpl$RowImpl.getValue(RowIteratorImpl.java:289)
> 	at org.apache.jsp.search_jsp._jspService(search_jsp.java:359)
 >  [...]

jackrabbit 1.3.3 only allows you to get an excerpt for the result node, that is 
only rep:excerpt() is supported. With 1.4 you will be able to pass a relative 
path, just like in your case. See: https://issues.apache.org/jira/browse/JCR-860

regards
  marcel

Mime
View raw message