From 7e8206991e26acd3382873d2941db8788f8d87f6 Mon Sep 17 00:00:00 2001 From: Koji Sekiguchi Date: Wed, 23 Sep 2009 01:52:20 +0000 Subject: [PATCH] SOLR-908: remove unnecessary property git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@817924 13f79535-47bb-0310-9956-ffa450edef68 --- .../org/apache/solr/analysis/CommonGramsFilterFactory.java | 6 ------ .../solr/analysis/CommonGramsQueryFilterFactory.java | 7 ------- 2 files changed, 13 deletions(-) diff --git a/src/java/org/apache/solr/analysis/CommonGramsFilterFactory.java b/src/java/org/apache/solr/analysis/CommonGramsFilterFactory.java index f7820b6c140..71827d66f16 100644 --- a/src/java/org/apache/solr/analysis/CommonGramsFilterFactory.java +++ b/src/java/org/apache/solr/analysis/CommonGramsFilterFactory.java @@ -40,7 +40,6 @@ public class CommonGramsFilterFactory extends BaseTokenFilterFactory implements public void inform(ResourceLoader loader) { String commonWordFiles = args.get("words"); ignoreCase = getBoolean("ignoreCase", false); - enablePositionIncrements = getBoolean("enablePositionIncrements", false); if (commonWordFiles != null) { try { @@ -65,11 +64,6 @@ public class CommonGramsFilterFactory extends BaseTokenFilterFactory implements //Force the use of a char array set, as it is the most performant, although this may break things if Lucene ever goes away from it. See SOLR-1095 private CharArraySet commonWords; private boolean ignoreCase; - private boolean enablePositionIncrements; - - public boolean isEnablePositionIncrements() { - return enablePositionIncrements; - } public boolean isIgnoreCase() { return ignoreCase; diff --git a/src/java/org/apache/solr/analysis/CommonGramsQueryFilterFactory.java b/src/java/org/apache/solr/analysis/CommonGramsQueryFilterFactory.java index fbf053f8279..bc2f23d2209 100644 --- a/src/java/org/apache/solr/analysis/CommonGramsQueryFilterFactory.java +++ b/src/java/org/apache/solr/analysis/CommonGramsQueryFilterFactory.java @@ -39,7 +39,6 @@ public class CommonGramsQueryFilterFactory extends BaseTokenFilterFactory public void inform(ResourceLoader loader) { String commonWordFiles = args.get("words"); ignoreCase = getBoolean("ignoreCase", false); - enablePositionIncrements = getBoolean("enablePositionIncrements", false); if (commonWordFiles != null) { try { @@ -71,12 +70,6 @@ public class CommonGramsQueryFilterFactory extends BaseTokenFilterFactory private boolean ignoreCase; - private boolean enablePositionIncrements; - - public boolean isEnablePositionIncrements() { - return enablePositionIncrements; - } - public boolean isIgnoreCase() { return ignoreCase; }