lucenenet-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (LUCENENET-544) Turkish stemmer causes an IndexOutOfRange
Date Thu, 24 Dec 2015 20:49:49 GMT

    [ https://issues.apache.org/jira/browse/LUCENENET-544?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15071239#comment-15071239
] 

ASF GitHub Bot commented on LUCENENET-544:
------------------------------------------

GitHub user ArionWM opened a pull request:

    https://github.com/apache/lucenenet/pull/158

    Fix for 'Turkish stemmer causes an IndexOutOfRange' (issue: LUCENENET-544)

    Fix for https://issues.apache.org/jira/browse/LUCENENET-544

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/ArionWM/lucenenet master

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/lucenenet/pull/158.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #158
    
----
commit 20789a27ebf4f0cdf43020dc8f958df737af42e6
Author: Türkay Kaynak <turkaykaynak@yahoo.com>
Date:   2015-12-24T20:47:21Z

    Fix for 'Turkish stemmer causes an IndexOutOfRange'
    
    Fix for https://issues.apache.org/jira/browse/LUCENENET-544

----


> Turkish stemmer causes an IndexOutOfRange
> -----------------------------------------
>
>                 Key: LUCENENET-544
>                 URL: https://issues.apache.org/jira/browse/LUCENENET-544
>             Project: Lucene.Net
>          Issue Type: Bug
>          Components: Lucene.Net Contrib
>         Environment: Windows 7 x64, .NET 4.0
>            Reporter: Peter Wright
>         Attachments: 2015.12.24.TurkishStemmerFixTests.zip, Program.cs, Turkish.txt,
Turkish3.txt, TurkishStemmer.TemporarySolution.cs, Visual Studio with exception details.png
>
>
> Certain words in the Turkish stemmer is causing SnowballProgram to throw an index out
of range exception in the method "find_among_b(Among[] v, int v_size)".
> Line 353
> diff = current[c - 1 - common] - w.s[i2];
> current[c - 1 - common]	'current[c - 1 - common]' threw an exception of type 'System.IndexOutOfRangeException'
char {System.IndexOutOfRangeException}
> -		current	{ı}	System.Text.StringBuilder
> 		Length	1	int
> 		c	8	int
> 		common	0	int



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message