[opencms-dev] hit.getExceprt() returns "null"
Mario Jäger
m.jaeger at alkacon.com
Fri Dec 18 10:41:37 CET 2009
Hi Christoph,
Are there any entries in the OpenCms logfile WEB-INF/logs/opencms.log
when you rebuild the search index?
--
Kind Regards,
Mario.
-------------------
Mario Jäger
Alkacon Software GmbH - The OpenCms Experts
http://www.alkacon.com - http://www.opencms.org
Christoph P. Kukulies schrieb:
> On Thu, Dec 17, 2009 at 09:31:47AM +0100, Mario J??ger wrote:
>
>> Hi Christoph,
>>
>> Please, check if these PDF-files are password protected.
>>
>
> Hi Mario,
> I can say pretty much for sure that they are not. They can be opened by
> clicking on the link without any further action.
>
> --
> Chris Christoph P. U. Kukulies kukulies (at) rwth-aachen.de
>
>
>> Christoph P. Kukulies schrieb:
>>
>>> 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