[
https://issues.apache.org/jira/browse/LUCENENET-54?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12519297
]
Torsten Rendelmann commented on LUCENENET-54:
---------------------------------------------
Hi George, sorry about posting only the callstack - my idea was it should be
enough to analyze this.
OK, here is what we did: we parse XML feeds and index the ite content. The
language (if provided) of the feed controls what stemmer (analyzer) we
instantiate to index/add the content. In case of a Danish feed content the
Stemmer failed to index (as posted)
Meanwhile we have the same issue with the FinishStemmer too, so you may think
about to re-open that issue and try to track it with a unit test -
The current "solution" in our project is to just ignore "danish" and "finish"
special language indexing and use the default analyzer.
> ArgumentOurOfRangeException caused by SF.Snowball.Ext.DanishStemmer
> -------------------------------------------------------------------
>
> Key: LUCENENET-54
> URL: https://issues.apache.org/jira/browse/LUCENENET-54
> Project: Lucene.Net
> Issue Type: Bug
> Environment: Windows XP SP2, lucene.net v2.0 004
> Reporter: Torsten Rendelmann
> Assignee: George Aroush
> Priority: Critical
>
> 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)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.