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

FastVectorHighlighter - add position offset to FieldPhraseList.WeightedPhraseInfo.Toffs

Details

    • Improvement
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 3.2
    • None
    • modules/highlighter
    • Lucene 3.2

    • New

    Description

      Needed to return position offsets along with highlighted snippets when using FVH for highlighting.

      Using the (LUCENE-3141) patch I was able to get the fragInfo for a particular Phrase search. Currently the Toffs(Term offsets) class only stores the start and end offset.

      To get the position offset, I added the position offset information in Toffs and FieldPhraseList class.

      Attachments

        1. CustomSolrHighlighter.java
          7 kB
          Jahangir Anwari
        2. LUCENE-3243.patch.diff
          3 kB
          Jahangir Anwari

        Activity

          People

            Unassigned Unassigned
            janwari Jahangir Anwari
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: