Uploaded image for project: 'Lucene.Net'
  1. Lucene.Net
  2. LUCENENET-156

Contrib Highlighter.net -> getBestTextFraments error

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • None
    • None
    • None
    • .NET framework

    Description

      In line 274 and 275 is comment out. So far, it's obvious written wrong. It should look like this.

      if (lastEndOffset < text.Length)
      newText.Append(encoder.EncodeText(text.Substring(lastEndOffset)));

      If this code is comment out, it could cut off the end of the field. Example i field ends with </span> the newText would end as </span

      Please correct it in the next release.

      Poul

      Attachments

        Activity

          People

            Unassigned Unassigned
            penielsen Poul Erik Nielsen
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: