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

FastVectorHighlighter - add position offset to FieldPhraseList.WeightedPhraseInfo.Toffs

    XMLWordPrintableJSON

    Details

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

      Lucene 3.2

    • Lucene Fields:
      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. LUCENE-3243.patch.diff
          3 kB
          Jahangir Anwari
        2. CustomSolrHighlighter.java
          7 kB
          Jahangir Anwari

          Activity

            People

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

              Dates

              • Created:
                Updated: