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

ArgumentOurOfRangeException caused by SF.Snowball.Ext.DanishStemmer

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: Lucene.Net 2.9.4, Lucene.Net 2.9.4g, Lucene.Net 3.0.3
    • Fix Version/s: Lucene.Net 3.0.3
    • Component/s: None
    • Labels:
      None
    • Environment:

      Windows XP SP2, lucene.net v2.0 004

      Description

      Exception Information
      System.SystemException: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.ArgumentOutOfRangeException: Index and length must refer to a location within the string.
      Parameter name: length
      at System.String.Substring(Int32 startIndex, Int32 length)
      at System.Text.StringBuilder.ToString(Int32 startIndex, Int32 length)
      at SF.Snowball.SnowballProgram.slice_to(StringBuilder s)
      at SF.Snowball.Ext.DanishStemmer.r_undouble()
      at SF.Snowball.Ext.DanishStemmer.Stem()
      — End of inner exception stack trace —
      at System.Reflection.RuntimeMethodInfo.InternalInvoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean isBinderDefault, Assembly caller, Boolean verifyAccess)
      at System.Reflection.RuntimeMethodInfo.InternalInvoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean verifyAccess)
      at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
      at System.Reflection.MethodBase.Invoke(Object obj, Object[] parameters)
      at System.Reflection.MethodInfo.Invoke(Object obj, Object[] parameters)
      at Lucene.Net.Analysis.Snowball.SnowballFilter.Next()
      at Lucene.Net.Analysis.Snowball.SnowballFilter.Next()
      at Lucene.Net.Index.DocumentWriter.InvertDocument(Document doc)
      at Lucene.Net.Index.DocumentWriter.AddDocument(String segment, Document doc)
      at Lucene.Net.Index.IndexWriter.AddDocument(Document doc, Analyzer analyzer)

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                torstenr Torsten Rendelmann
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: