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

UnifiedHighlighter: Make Passage public for extensibility

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 6.4
    • Component/s: modules/highlighter
    • Labels:
      None
    • Lucene Fields:
      New

      Description

      (UnifiedHighlighter) Passage.java has a variety of package-level fields and methods that are accessed by FieldHighlighter.highlightOffsetsEnums (the kernel of the UH). It should be possible for people to extend this method to tweak the process of producing passages. That method is extensible but Passage.java is too closed. Even if one were to write their own equivalent to Passage.java, it would be impossible to then use PassageScorer or PassageFormatter.

        Attachments

          Activity

            People

            • Assignee:
              dsmiley David Smiley
              Reporter:
              dsmiley David Smiley
            • Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: