lucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cpoersc...@apache.org
Subject [25/50] lucene-solr:jira/solr-10990: LUCENE-7940: added missing boundary case for ba phaala normalization
Date Wed, 06 Sep 2017 09:39:27 GMT
LUCENE-7940: added missing boundary case for ba phaala normalization


Project: http://git-wip-us.apache.org/repos/asf/lucene-solr/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucene-solr/commit/40dddf93
Tree: http://git-wip-us.apache.org/repos/asf/lucene-solr/tree/40dddf93
Diff: http://git-wip-us.apache.org/repos/asf/lucene-solr/diff/40dddf93

Branch: refs/heads/jira/solr-10990
Commit: 40dddf9324e549e14132b9cd957ed07c7aca5c96
Parents: 7d468c4
Author: Md. Abdulla-Al-Sun <sunkuet02@gmail.com>
Authored: Sun Sep 3 01:53:15 2017 +0600
Committer: Md. Abdulla-Al-Sun <sunkuet02@gmail.com>
Committed: Sun Sep 3 01:53:15 2017 +0600

----------------------------------------------------------------------
 .../src/java/org/apache/lucene/analysis/bn/BengaliNormalizer.java  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/40dddf93/lucene/analysis/common/src/java/org/apache/lucene/analysis/bn/BengaliNormalizer.java
----------------------------------------------------------------------
diff --git a/lucene/analysis/common/src/java/org/apache/lucene/analysis/bn/BengaliNormalizer.java
b/lucene/analysis/common/src/java/org/apache/lucene/analysis/bn/BengaliNormalizer.java
index 057fbb5..1718cbc 100644
--- a/lucene/analysis/common/src/java/org/apache/lucene/analysis/bn/BengaliNormalizer.java
+++ b/lucene/analysis/common/src/java/org/apache/lucene/analysis/bn/BengaliNormalizer.java
@@ -104,7 +104,7 @@ public class BengaliNormalizer {
             len = delete(s, i, len);
             len = delete(s, i-1, len);
             i -=2;
-          } else {
+          } else if(i - 2 >= 0){
             s[i - 1] = s[i - 2];
             len = delete(s, i, len);
             i --;


Mime
View raw message