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

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

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 4.3, 6.0
    • None
    • None
    • 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

        1. LUCENE-4861.patch
          10 kB
          Robert Muir

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: