Uploaded image for project: 'Lucene - Core'
  1. Lucene - Core
  2. LUCENE-4896

PostingsHighlighter should use a interface of PassageFormatter instead of a class

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 4.2
    • Fix Version/s: 4.3, 6.0
    • Component/s: modules/highlighter
    • Labels:
    • Environment:

      NA

    • Lucene Fields:
      New

      Description

      In my project I need a custom PassageFormatter to use with PostingsHighlighter. I extended PassageFormatter to override format(...)

      but if I do that, I don't have access to the private variables. So instead of changing the scope to protected, it should be more usefull to use a interface for PassageFormatter.

      like public DefaultPassageFormatter implements PassageFormatter.

        Attachments

        1. LUCENE-4896.patch
          15 kB
          Luca Cavanna
        2. LUCENE-4896.patch
          15 kB
          Luca Cavanna
        3. LUCENE-4896.patch
          16 kB
          Luca Cavanna

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              survivant Sebastien Dionne
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: