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

PostingsHighlighter should use a interface of PassageFormatter instead of a class

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 4.2
    • 4.3, 6.0
    • modules/highlighter
    • NA

    • 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
          16 kB
          Luca Cavanna
        2. LUCENE-4896.patch
          15 kB
          Luca Cavanna
        3. LUCENE-4896.patch
          15 kB
          Luca Cavanna

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: