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

can we use a single PostingsHighlighter for both whole and snippet highlighting?

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.3, 6.0
    • Component/s: None
    • Labels:
      None
    • Lucene Fields:
      New

      Description

      Right now, because we pass the BreakIterator to the ctor, you have to make two instances if you sometimes want whole and sometimes want snippets.

      But I think this is a fairly common use case, eg I want entire title field (with matches highlighted) but I want body field (snippets + highlights). It would be nice to have this work with a single instance ...

        Attachments

          Activity

            People

            • Assignee:
              mikemccand Michael McCandless
              Reporter:
              mikemccand Michael McCandless
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: