add getters to StopFilterFactory

git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@672830 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Yonik Seeley 2008-06-30 17:29:18 +00:00
parent e31c9deb9f
commit bc21016abd
1 changed files with 12 additions and 0 deletions

View File

@ -53,6 +53,18 @@ public class StopFilterFactory extends BaseTokenFilterFactory implements Resourc
private boolean ignoreCase;
private boolean enablePositionIncrements;
public boolean isEnablePositionIncrements() {
return enablePositionIncrements;
}
public boolean isIgnoreCase() {
return ignoreCase;
}
public Set getStopWords() {
return stopWords;
}
public StopFilter create(TokenStream input) {
StopFilter stopFilter = new StopFilter(input,stopWords,ignoreCase);
stopFilter.setEnablePositionIncrements(enablePositionIncrements);