You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oak-issues@jackrabbit.apache.org by "Dirk Rudolph (JIRA)" <ji...@apache.org> on 2017/09/11 08:50:02 UTC

[jira] [Created] (OAK-6643) Return a common format of excerpts independent of the highlighter used

Dirk Rudolph created OAK-6643:
---------------------------------

             Summary: Return a common format of excerpts independent of the highlighter used
                 Key: OAK-6643
                 URL: https://issues.apache.org/jira/browse/OAK-6643
             Project: Jackrabbit Oak
          Issue Type: Improvement
            Reporter: Dirk Rudolph
            Priority: Minor


While using {{rep:excerpt}} functionality we mentioned that the format of the {{PostingsHighlighter}} differs to the one of {{Highlighter}}. See the example below:

{{PostingsHighlighter}} 
{quote}
[In Central &amp; Eastern Europe and Asia Pacific Allianz is one of the leading international <b>insurance</b> companies. ]
{quote}

{{Highlighter}}
{quote}
&quot;Life Risk <strong>Insurance</strong>&quot;
{quote}

It would be great to have one single format, so that application doesn't have to handle those differences. 

Additionally the {{Arrays.toString(...)}} used to generated an excerpt string from the {{PostingsHighlighter}} causes the excerpt text to be wrapped in "[...]", I guess thats not intended.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)