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

Lucene.Net.QueryParsers.Flexible.Core.Util.UnescapedCharSequence

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: Lucene.Net 4.8.0
    • Fix Version/s: Lucene.Net 4.8.0
    • Component/s: Lucene.Net.QueryParser
    • Labels:
      None
    • Environment:

      .NET 4.5.1/4.6.2

      Description

      I noticed a few things that seem to be bugs in UnescapedCharSequence.cs.

      https://github.com/apache/lucenenet/blob/master/src/Lucene.Net.QueryParser/Flexible/Core/Util/UnescapedCharSequence.cs

      Line 77: I found no reference to the private constructor UnescapedCharSequence(UnescapedCharSequence text), but needed to use it.

      Line 81: The for loop throws an exception as the condition statement goes beyond the length of text due to '<=', rather than '<'.

      Line 128: The for loop immediately terminates as i will always fail the condition statement.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                nightowl888 Shad Storhaug
                Reporter:
                gregmulvihill Greg Mulvihill
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: