Skip to content

armgit / solr

Public Imported from GitHub
0

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.java
index 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 Resourc
throw 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