Lucene - Core
  1. Lucene - Core
  2. LUCENE-3243

FastVectorHighlighter - add position offset to FieldPhraseList.WeightedPhraseInfo.Toffs

    Details

    • Type: Improvement Improvement
    • Status: Open
    • Priority: Minor 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.

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

        Activity

        Jahangir Anwari created issue -
        Jahangir Anwari made changes -
        Field Original Value New Value
        Attachment LUCENE-3243.patch.diff [ 12483847 ]
        Jahangir Anwari made changes -
        Attachment LUCENE-3243.patch.diff [ 12483847 ]
        Jahangir Anwari made changes -
        Attachment LUCENE-3243.patch.diff [ 12483848 ]
        Jahangir Anwari made changes -
        Attachment CustomSolrHighlighter.java [ 12483963 ]

          People

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

            Dates

            • Created:
              Updated:

              Development