[opencms-dev] PDF file destroys search result

Schliemann, Kai K.Schliemann at comundus.com
Tue Oct 23 12:55:34 CEST 2018


Hi A.,
we faced this problem as well and just removed the excerpt of PDF files in the search result list.
It is not a proper solution but was OK for us.
Best regards
Kai

Von: opencms-dev-bounces at opencms.org <opencms-dev-bounces at opencms.org> Im Auftrag von Arno Nym
Gesendet: Dienstag, 23. Oktober 2018 10:56
An: Open CMS <opencms-dev at opencms.org>
Betreff: [opencms-dev] PDF file destroys search result

Hi,
does anybody have experience that pdf files can destroy the search result? We use OpenCMS 10.5.4 with the code from OpenCMS (config jsp-search-00001.xml with formatter jsp-search-formatter.jsp).
Problem: The snippet length is not maintained and it is almost the entire file in the output.

In the formatter i found this:

<<
"<%-- The import is only necessary to avoid highlighting snippets that destroy the HTML structure --%>"
<%@ page import="org.opencms.util.CmsHtmlConverter"%>
>>

...but despite i get the problem.

Thanks for any tip.
A.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20181023/73abc51b/attachment.htm>


More information about the opencms-dev mailing list