mirror of https://github.com/apache/lucene.git
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:
parent
e31c9deb9f
commit
bc21016abd
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue