Uploaded image for project: 'Jackrabbit Oak'
  1. Jackrabbit Oak
  2. OAK-6643

Return a common format of excerpts independent of the highlighter used

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 1.6.1
    • None
    • lucene

    Description

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

      PostingsHighlighter

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

      Highlighter

      "Life Risk <strong>Insurance</strong>"

      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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            diru Dirk Rudolph
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: