Lucene.Net
  1. Lucene.Net
  2. LUCENENET-156

Contrib Highlighter.net -> getBestTextFraments error

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Environment:

      .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

        Activity

          People

          • Assignee:
            Unassigned
            Reporter:
            Poul Erik Nielsen
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development