Apache Solr open-source search software
properly set stopwords case-sensitivity
Robert Muir28453dc377f3
diff --git a/src/java/org/apache/solr/analysis/StopFilterFactory.java b/src/java/org/apache/solr/analysis/StopFilterFactory.javaindex f1330fdddaf..e7b34d79940 100644--- a/src/java/org/apache/solr/analysis/StopFilterFactory.java+++ b/src/java/org/apache/solr/analysis/StopFilterFactory.java@@ -58,7 +58,7 @@ public class StopFilterFactory extends BaseTokenFilterFactory implements Resourcthrow new RuntimeException(e);}} else {- stopWords = (CharArraySet) StopAnalyzer.ENGLISH_STOP_WORDS_SET;+ stopWords = new CharArraySet(StopAnalyzer.ENGLISH_STOP_WORDS_SET, ignoreCase);}}//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