Lucene - Core
  1. Lucene - Core
  2. LUCENE-4896

PostingsHighlighter should use a interface of PassageFormatter instead of a class

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 4.2
    • Fix Version/s: 4.3, Trunk
    • 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.

      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

        Uwe Schindler made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Robert Muir made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Fix Version/s 5.0 [ 12321663 ]
        Fix Version/s 4.3 [ 12324143 ]
        Resolution Fixed [ 1 ]
        Luca Cavanna made changes -
        Attachment LUCENE-4896.patch [ 12578466 ]
        Luca Cavanna made changes -
        Attachment LUCENE-4896.patch [ 12578460 ]
        Luca Cavanna made changes -
        Attachment LUCENE-4896.patch [ 12578454 ]
        Robert Muir made changes -
        Field Original Value New Value
        Labels newdev
        Sebastien Dionne created issue -

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development