Lucene - Core
  1. Lucene - Core
  2. LUCENE-3007

Fast vector highlighter: Allow access to start/end offsets

    Details

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

      Description

      Hello everyone,

      Apparently, the fast vector highlighter assumes all of its clients want to highlight HTML. However, there are some people (like me) who would like to implement highlighting on a text-only document view, so nothing but the highlighting start/end offsets are needed.

      This works quite well with Lucene's standard highlighter. Unfortunately, there seems to be no officially supported way to access the start/end offsets that are computed by the fast vector highlighter. More precisely, all the needed information is stored in the linked list org.apache.lucene.search.vectorhighlight.FieldPhraseList.phraseList, but there's no way to access it, except using reflection or modifying the highlighter source code.

      So my proposal is to provide some methods for accessing this particular field, or any other means to get the highlighting start/end offsets of the fast vector highlighter. Thanks in advance!

      Best regards
      Tran Nam Quang

        Activity

        No work has yet been logged on this issue.

          People

          • Assignee:
            Unassigned
            Reporter:
            Tran Nam Quang
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:

              Development