[opencms-dev] hit.getExceprt() returns "null"

Christoph P. Kukulies kuku at physik.rwth-aachen.de
Tue Dec 15 17:53:46 CET 2009


I'm wondering why some searches return "null" from getExcerpt().

I have this code snippet:

<p>
   <a href="<cms:link><%=cms.getRequestContext().removeSiteRoot(hit.getPath()) %></cms:link>">
<%= cms.getRequestContext().removeSiteRoot(hit.getPath())%></a><br/>
   
   <%= hit.getExcerpt() %><br/>
</p>

On some PDF-files the excerpt text is empty (null is shown). How come?

--
Chris Christoph P. U. Kukulies kukulies (at) rwth-aachen.de




More information about the opencms-dev mailing list