jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Marc Schriftman" <schri...@gmail.com>
Subject Problem with Excerpts
Date Mon, 12 Nov 2007 22:35:31 GMT
Hi y'all,

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!

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)
	at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
	at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:331)
	at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:329)
	at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174)
	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151)
	at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:874)
	at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
	at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
	at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
	at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)
	at java.lang.Thread.run(Thread.java:595)

If I comment out the reference to 'rep:excerpt(jcr:content)' the rest
of the page works fine, and I see my results. The seemingly relevent
part of the repository config looks like this:

<SearchIndex class="org.apache.jackrabbit.core.query.lucene.SearchIndex">
      <param name="path" value="${wsp.home}/index"/>
      <param name="respectDocumentOrder" value="false"/>
      <param name="resultFetchSize" value="100"/>
      <param name="supportHighlighting" value="true"/>
      <param name="extractorPoolSize" value="2"/>
      <param name="extractorTimeout " value="10"/>
      <param name="maxFieldLength" value="1000000"/>
      <param name="textFilterClasses"
value="org.apache.jackrabbit.extractor.PlainTextExtractor,org.apache.jackrabbit.extractor.MsWordTextExtractor,org.apache.jackrabbit.extractor.MsExcelTextExtractor,org.apache.jackrabbit.extractor.MsPowerPointTextExtractor,org.apache.jackrabbit.extractor.PdfTextExtractor,org.apache.jackrabbit.extractor.OpenOfficeTextExtractor,org.apache.jackrabbit.extractor.RTFTextExtractor,org.apache.jackrabbit.extractor.HTMLTextExtractor,org.apache.jackrabbit.extractor.XMLTextExtractor"/>
      <param name="excerptProviderClass"
value="org.apache.jackrabbit.core.query.lucene.DefaultHTMLExcerpt"/>
    </SearchIndex>

I'm on JCR 1.3.3 and JDK 1.5.0_12, if it matters. Any help anyone
could offer would be deeply appreciated.

Regards,

Marc Schriftman

Mime
View raw message