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

Avoiding non necessary exceptions

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Invalid
    • None
    • None
    • None
    • None

    Description

      As already said in previous issues, there are few exceptions that are raised for no reason (apparently).

      I updated FastCharStream, QueryParserTokenManager, FieldInfos to avoid these kind of exception.

      • FastCharStream.ReadChar() returns '\0' if we are trying to read byond the end of the stream.
      • Updated QueryParserTokenManager to support the previous fix
      • Update FieldInfos.FieldName. No more reading take place if fieldNumber is -1.

      Attachments

        1. patch2.zip
          50 kB
          Fabio Buscaroli
        2. patch.zip
          46 kB
          Fabio Buscaroli
        3. lucene-net-exception.patch
          12 kB
          Joe Shaw
        4. 11_charstream-no-exceptions.patch
          5 kB
          Joe Shaw

        Activity

          People

            Unassigned Unassigned
            fbuscaroli Fabio Buscaroli
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: